https://github.com/manojc/web-components
Provides a login widget with few additional features.
https://github.com/manojc/web-components
Last synced: 2 months ago
JSON representation
Provides a login widget with few additional features.
- Host: GitHub
- URL: https://github.com/manojc/web-components
- Owner: manojc
- Created: 2016-11-17T04:15:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T02:59:09.000Z (over 7 years ago)
- Last Synced: 2025-02-03T23:03:08.866Z (3 months ago)
- Language: HTML
- Homepage: https://manojc.github.io/web-components
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Web Component For Login ##
This custom element provides a functionality of a login widget & it comes up with following features.- **Header Attribute**
> This attribute is used to change the header.
> It's default value is `Login`
>
> Example -
> ``
>
> 
- **Post Url Attribute**
> Upon setting this attribute with a valid post url, this component will fire a post call to this url.
The response data from post call is made available using a custom event **`login-success`**.
If the post url attribute is not set, **`login-success`** event is fired without making the post call.
The payload for this post call is an object like -
> `{
username: 'John Doe',
password: 'qwerty123!@#'
}`
> Example -
> ``