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 attrName
string The attribute name that has changed
oldValue
string The old attribute value
newValue
string The new attribute value