Inline Notification Web Component
Usage
<dbp-inline-notification></dbp-inline-notification>
Attributes
-
lang
(optional, default:de
): set tode
oren
for German or English- example
<dbp-inline-notification lang="de" ></dbp-inline-notification>
- example
-
type
(optional, default:info
): set toprimary
,info
,success
,danger
,warning
- example
<dbp-inline-notification lang="de" type="" ></dbp-inline-notification>
- example
-
summary
(optional): set to a specific text for an optional summary headline- example
<dbp-inline-notification summary="Item deleted"></dbp-inline-notification>
- example
-
body
: can be set to a specific text and/or HTML.- example
<dbp-inline-notification body="Item <b>foo</b> was deleted"></dbp-inline-notification>
- example
Local development
# get the source
git clone git@gitlab.tugraz.at:dbp/web-components/toolkit.git
cd toolkit/packages/inline-notification
# install dependencies
yarn install
# constantly build dist/bundle.js and run a local web-server on port 8002
yarn run watch
# run tests
yarn test
# build local packages in dist directory
yarn run build
Jump to http://localhost:8002 and you should get a demo page.