Constructor
new AccessRuleView()
- Source:
Extends
Members
allowChanges :boolean
If true, the user can change the AccessRule via this view.
If false, the AccessRule will just be displayed.
Type:
- Source:
className :string
The HTML classes to use for this view's element
Type:
- Source:
events :Object
The events this view will listen to and the associated function to call.
Type:
- Source:
isNew :boolean
If true, this view represents a new AccessRule that hasn't been added to the AccessPolicy yet
Type:
- Source:
The AccessRule model that is displayed in this view
Type:
- Source:
tagName :string
The HTML tag name for this view's element
Type:
- Source:
type :string
The type of View this is
Type:
- Source:
Methods
initialize(options)
Is executed when a new AccessRuleView is created
Parameters:
Name |
Type |
Description |
options |
Object
|
A literal object with options to pass to the view |
- Source:
listenForEnter(e)
Handles when the user has typed at least one character in the name search input
Parameters:
Name |
Type |
Description |
e |
Event
|
The keypress event |
- Source:
onRemove()
Remove this AccessRule from the AccessPolicy
- Source:
render()
Renders a single Access Rule
- Source:
updateAccess()
Update the AccessRule model with the selected access option
- Source:
updateAccessDisplay()
Update the access in this view with the access from the model
- Source:
updateModel()
Updates the model associated with this view
- Source:
updateNameDisplay()
Update the name in this view with the name from the model
- Source:
updateSubject()
Update the subject of the AccessRule
- Source: