0.12.0 • Published 8 years ago

d2l-insights-roles-input v0.12.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
8 years ago

d2l-insights-roles-input

NPM version Build status

Overview

This library contains the roles input control.

API Docs

getNew(parentElement, rolesData, roleSelectorChangeCb)

Create a new widget contained by parentElement with rolesData, with roleSelectorChangeCb(selectedRoleIds) as callback function which will be called with a list of RoleIds everytime roles selection changed. Note that this will bind event liseners to the created element.

setRolesHeader(subHeaderElement, roleSelector)

Update the subHeaderElement based on the current selection of roleSelector, you are expected to call this function in the needed time in order to sync the subHeaderElement with roleSelector.

setSubHeaderShowAllLink(subHeaderShowAllLinkElement, roleSelector)

Update the subHeaderShowAllLinkElement based on the current selection of roleSelector, you are expected to call this function in the needed time in order to sync the subHeaderShowAllLinkElement with roleSelector.

setSubHeaderShowAllRoles(subHeaderElement, subHeaderShowAllLinkElement, roleSelector)

Update the subHeaderElement and subHeaderShowAllLinkElement based on the current selection of roleSelector, you are expected to call this function in the needed time in order to sync the subHeaderElement and subHeaderShowAllLinkElement with roleSelector.

0.12.0

8 years ago

0.11.0

8 years ago

0.10.0

8 years ago

0.9.0

8 years ago

0.8.0

8 years ago

0.7.0

8 years ago

0.6.0

8 years ago

0.5.1

8 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.1.0

9 years ago