Constructor
new Permission($container, scroller)
#
Properties
$close
#
"Close" button (does not actually close the box, just makes it smaller).
Properties:
| Type | Description |
|---|---|
| jQuery |
- Source:
$html
#
Original (HTML) version of the author's message This can be scary sometimes (huge tables, black text on dark purple background etc).
Properties:
| Type | Description |
|---|---|
| jQuery |
- Source:
Original (HTML) version of the author's message This can be scary sometimes (huge tables, black text on dark purple background etc).
$text
#
Plain-text version of the author's message This is just the text parsed out from the original markup, it might not make much sense (e.g. if the original is a HTML table)
Properties:
| Type | Description |
|---|---|
| jQuery |
- Source:
Plain-text version of the author's message This is just the text parsed out from the original markup, it might not make much sense (e.g.
$title
#
scroller
#
Panel scroller from the metadata panel object.
Properties:
| Type | Description |
|---|---|
| MetadataPanelScroller |
- Source:
Methods
empty()
#
Clear everything
- Source:
grow()
#
Enlarge the box, show HTML instead of text.
Fires:
- Source:
isFullSize() → {boolean}
#
Returns whether the box is full-size.
Returns:
- Type
- boolean
- Source:
set(permission)
#
Set permission text/html
Parameters:
| Name | Type | Description |
|---|---|---|
permission |
string | the text or HTML code written by the image author |
- Source:
shrink()
#
Limit the size of the box, show text only.
Fires:
- Source:
Events
mmv-permission-grow()
#
- Source:
mmv-permission-shrink()
#
- Source: