new PfAlert()
Properties:
| Name | Type | Description |
|---|---|---|
type |
string | danger, warning, success, info |
persistant |
string | true, false |
persistent-callback-fn |
function |
Example
<pf-alert type="danger" persistent="true" persistentCallbackFn="alert('Danger alert closed');"></pf-alert>
Methods
-
attributeChangedCallback(attrName, oldValue, newValue)
-
Called when element's attribute value has changed
Parameters:
Name Type Description attrNamestring The attribute name that has changed
oldValuestring The old attribute value
newValuestring The new attribute value