CAF Noodle JavaScript

Class Noodle

Object
   |
   +--Noodle

class Noodle

Defined in noodle.js


Nested Class Summary
<static class> Noodle.Leftnav
<static class> Noodle.HTML
<static class> Noodle.CSS
<static class> Noodle.Model
<static class> Noodle.Page
<static class> Noodle.PageAndPortletModelHelpers
<static class> Noodle.Portlet
<static class> Noodle.Row
<static class> Noodle.Tab
<static class> Noodle.User
 
Field Summary
<static>  Object ALL
          {int} All right-bits.
<static>  Object ATTR
          {int} Property not intended to be changed by end user.
<static>  Object BOOLEAN
          {int} Boolean data-type.
<static>  Object canvasMinHeight
          {int} Minimum height for canvas in pixels.
<static>  Object canvasMinWidth
          {int} Minimum width for canvas in pixels.
<static>  Object CLOB
          {int} String (unbounded) data-type.
<static>  Object CONFIG
          {int} Property persisted per-portlet-type.
<static>  Object CONTENT
          {int} Property persisted per-portlet-instance.
<static>  Object contextPath
          {string} Noode webapp context path.
<static>  Object CREATE_CONTAINER
          {int} Create-container right-bits.
<static>  Object CREATE_ITEM
          {int} Create-non-container right-bits.
<static>  Object CREATE_REFERENCE
          {int} Add-reference right-bits.
<static>  Object DATETIME
          {int} Date data-type.
<static>  Object DELETE
          {int} Delete right-bits.
<static>  Object DELETE_REFERENCE
          {int} Remove-reference right-bits.
<static>  Object DISABLED
          {int} Portlet enabled.
<static>  Object ENABLED
          {int} Portlet enabled.
<static>  Object FLOAT
          {int} Real-number data-type.
<static>  Object HIDDEN
          {int} Portlet enabled.
<static>  Object INTEGER
          {int} Integer data-type.
<static>  Object LONG
          {int} Long-integer data-type.
<static>  Object MODIFY
          {int} Update right-bits.
<static>  Object MODIFY_PERMISSION
          {int} Change-permission right-bits.
<static>  Object MODIFY_REFERENCE
          {int} Change-reference right-bits.
<static>  Object NONE
          {int} No right-bits.
<static>  Object PORTLET_MODIFY_PROP_USER
          {int} modify user-scoped properties right-bits.
<static>  Object READ
          {int} View right-bits.
<static>  Object RELATED_CHILDREN
          {int} Property is a related-child.
<static>  Object RELATED_CONTAINERS
          {int} Property is a related-container.
<static>  Object requestScope
          {string} Scope for ajax requests.
<static>  Object SESSION
          {int} Property persisted per-session.
<static>  Object STRING
          {int} String (fixed-length) data-type.
<static>  Object SYSTEM
          {int} Property defined by system at run-time.
<static>  Object USER
          {int} Property persisted per-user.
 
Constructor Summary
Noodle ()
           
 
Method Summary
<static> Object addModelAnnotator(<function> fn, key)
           Registers a new model-annotator function, to be invoked every time a new noodle model is initialized.
<static> Object ancestor(element)
           Returns the closest noodle model object for the specified id or html element.
<static> Object baseModelAnnotator(<Noodle.Model> m)
           Base noodle model annotator.
<static> Object can(<int> needs, <int> has)
           Returns true if the current user has the right bits she needs.
<static> Object convert(<DataType> type, value)
           Converts specified value to specified type.
<static> Object dispatchToModelMethod(<string> methodName)
           Creates an event subscriber which dispatches to the specified method of the model for which the event was published.
<static> void error(<string> err, <string[]> args)
           Display error message for specified error id.
<static> Object getExpertMode()
           Editor expert-mode.
<static> void go(<string> url, options)
           Opens the specified page.
<static> Object isLoadPagesAsync()
           True if navigating loads pages asynchronously.
<static> Object model(x)
           Builds the noodle model object for the specified id, html element, or initial object.
<static> void release()
           Clean up any data that needs to be cleared when editor is closed.
<static> Object removeModelAnnotator(key)
           Unregisters an existing model-annotator function.
<static> void setExpertMode(<string> mode)
           Editor expert-mode.
<static> void waitForDND(<function> fn)
           Executes specified function if noodle drag-n-drop api is available now, or executes function when noodle drag-n-drop api becomes available.
<static> void warn(<string> err, <string[]> args)
           Display warning message for specified error id.

Field Detail

ALL

<static> Object ALL

ATTR

<static> Object ATTR

BOOLEAN

<static> Object BOOLEAN

canvasMinHeight

<static> Object canvasMinHeight

canvasMinWidth

<static> Object canvasMinWidth

CLOB

<static> Object CLOB

CONFIG

<static> Object CONFIG

CONTENT

<static> Object CONTENT

contextPath

<static> Object contextPath

CREATE_CONTAINER

<static> Object CREATE_CONTAINER

CREATE_ITEM

<static> Object CREATE_ITEM

CREATE_REFERENCE

<static> Object CREATE_REFERENCE

DATETIME

<static> Object DATETIME

DELETE

<static> Object DELETE

DELETE_REFERENCE

<static> Object DELETE_REFERENCE

DISABLED

<static> Object DISABLED

ENABLED

<static> Object ENABLED

FLOAT

<static> Object FLOAT

HIDDEN

<static> Object HIDDEN

INTEGER

<static> Object INTEGER

LONG

<static> Object LONG

MODIFY

<static> Object MODIFY

MODIFY_PERMISSION

<static> Object MODIFY_PERMISSION

MODIFY_REFERENCE

<static> Object MODIFY_REFERENCE

NONE

<static> Object NONE

PORTLET_MODIFY_PROP_USER

<static> Object PORTLET_MODIFY_PROP_USER

READ

<static> Object READ

RELATED_CHILDREN

<static> Object RELATED_CHILDREN

RELATED_CONTAINERS

<static> Object RELATED_CONTAINERS

requestScope

<static> Object requestScope

SESSION

<static> Object SESSION

STRING

<static> Object STRING

SYSTEM

<static> Object SYSTEM

USER

<static> Object USER

Constructor Detail

Noodle

Noodle()

Method Detail

addModelAnnotator

<static> Object addModelAnnotator(<function> fn, key)

ancestor

<static> Object ancestor(element)

baseModelAnnotator

<static> Object baseModelAnnotator(<Noodle.Model> m)

can

<static> Object can(<int> needs, <int> has)

convert

<static> Object convert(<DataType> type, value)

dispatchToModelMethod

<static> Object dispatchToModelMethod(<string> methodName)

error

<static> void error(<string> err, <string[]> args)

getExpertMode

<static> Object getExpertMode()

go

<static> void go(<string> url, options)

isLoadPagesAsync

<static> Object isLoadPagesAsync()

model

<static> Object model(x)

release

<static> void release()

removeModelAnnotator

<static> Object removeModelAnnotator(key)

setExpertMode

<static> void setExpertMode(<string> mode)

waitForDND

<static> void waitForDND(<function> fn)

warn

<static> void warn(<string> err, <string[]> args)

CAF Noodle JavaScript

Documentation generated by JSDoc on Fri Sep 20 11:58:17 2013