Class ::xowiki::YUIContextMenu (public)
::xo::tdom::Class ::xowiki::YUIContextMenu
Defined in
- Testcases:
-
No testcase defined.
Source code:
namespace eval ::xowiki {}
::nsf::object::alloc ::xo::tdom::Class ::xowiki::YUIContextMenu {set :__default_metaclass ::xotcl::Class
set :__default_superclass ::xotcl::Object}
::xowiki::YUIContextMenu instproc render {} {
append :CSSclass " yuimenu"
html::div [:get_attributes id {CSSclass class}] {
html::div -class "bd" {
html::ul -class yuicm {
foreach li [:children] {$li render}
}
}
html::script -nonce [security::csp::nonce] -type "text/javascript" {
html::t "var [:js_name] = new YAHOO.widget.ContextMenu('[:id]', { trigger: '${:trigger}' } );"
html::t "[:js_name].render(document.body);"
}
}
}
::xowiki::YUIContextMenu instparametercmd trigger
::xowiki::YUIContextMenu instparametercmd triggertype
::nsf::relation::set ::xowiki::YUIContextMenu superclass ::xowiki::YUIMenu
::nx::slotObj -container slot ::xowiki::YUIContextMenu
::xowiki::YUIContextMenu::slot eval {set :__parameter {
{trigger "document"}
{triggertype "reference"}
}}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::YUIContextMenu::slot::triggertype {set :accessor public
set :configurable true
set :convert false
set :default reference
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::YUIContextMenu
set :incremental 0
set :manager ::xowiki::YUIContextMenu::slot::triggertype
set :methodname triggertype
set :multiplicity 1..1
set :name triggertype
set :per-object false
set :position 0
set :required false
set :substdefault 0b111
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::YUIContextMenu::slot::trigger {set :accessor public
set :configurable true
set :convert false
set :default document
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::YUIContextMenu
set :incremental 0
set :manager ::xowiki::YUIContextMenu::slot::trigger
set :methodname trigger
set :multiplicity 1..1
set :name trigger
set :per-object false
set :position 0
set :required false
set :substdefault 0b111
set :trace none
: init}
namespace eval ::xowiki {::namespace export Menu YUIMenuBar YUIMenuBarItem YUIMenu YUIMenuItem YUIMenuItemList YUIContextMenu YUIContextMenuItem}
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]