allowing UI levels for assets to be overridden in the config file, and allowing developers to specify a default UI level in the definition rather than creating a getUiLevel() method
This commit is contained in:
parent
c9cefeca93
commit
c7864a0c24
15 changed files with 31 additions and 116 deletions
|
|
@ -64,6 +64,7 @@ sub definition {
|
|||
push(@{$definition}, {
|
||||
assetName=>'Rich Editor',
|
||||
icon=>'richEdit.gif',
|
||||
uiLevel => 5,
|
||||
tableName=>'RichEdit',
|
||||
className=>'WebGUI::Asset::RichEdit',
|
||||
properties=>{
|
||||
|
|
@ -381,18 +382,6 @@ sub getToolbar {
|
|||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getUiLevel ()
|
||||
|
||||
Returns the UI level of this asset.
|
||||
|
||||
=cut
|
||||
|
||||
sub getUiLevel {
|
||||
return 5;
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub getRichEditor {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue