Class sap.ca.ui.NotesModule: sap/ca/ui/Notes
This control is a List with the ability to render an additional control on top of it to add new notes. The developer is responsible to give the correct template to use to display notes (recommended are either the FeedListItem or the ExpansibleFeedListItem). The developer is also responsible to implement the code to send the notes to the backend system, by responding to the addNote event.
Deprecated API:Since version 1.22. This control has been made available in sap.m. Please use sap.m.FeedInput with sap.m.FeedListItem instead! This control will not be supported anymore.
(oControlEvent) Event is fired when the user clicks on the control.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the 'addNote' event of this sap.ca.ui.Notes
.fnFunction
from the 'addNote' event of this sap.ca.ui.Notes
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers.
If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).
The supported settings are:
- Properties
- showNoteInput : boolean (default: true)
- textMaxLength : int (default: 1000)
- placeholder : string
- Aggregations
- Associations
- Events
- addNote : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.m.List can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
- Deprecated:
- Since version 1.22. This control has been made available in sap.m. Please use sap.m.FeedInput with sap.m.FeedListItem instead! This control will not be supported anymore.
(oControlEvent) Event is fired when the user clicks on the control.
fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of informations as described in Element.extend.
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
{function} | the created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
fnFunction
to the 'addNote' event of this sap.ca.ui.Notes
.. When called, the context of the event handler (its
this
) will be bound to oListener if specified otherwise to this sap.ca.ui.Notes
.
itself. press event for button
(oControlEvent) Event is fired when the user clicks on the control.
fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
{object} | oData? | An application specific payload object, that will be passed to the event handler along with the event object when firing the event. |
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ca.ui.Notes .itself. |
{sap.ca.ui.Notes} | this to allow method chaining |
fnFunction
from the 'addNote' event of this sap.ca.ui.Notes
.The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
{sap.ca.ui.Notes} | this to allow method chaining |
{Map} | mArguments? | the arguments to pass along with the event. |
{sap.ca.ui.Notes} | this to allow method chaining |
placeholder
. Placeholder text shown when no value available . Default value is "Add note". Default value is empty/undefined
{string} | the value of property placeholder |
showNoteInput
. If set to true, this control will render an additional control to create new notes. Default value is true
{boolean} | the value of property showNoteInput |
textMaxLength
. max text input length Default value is 1000
{int} | the value of property textMaxLength |
placeholder
. Default value is empty/undefined
{string} | sPlaceholder | new value for property placeholder |
{sap.ca.ui.Notes} | this to allow method chaining |
showNoteInput
. Default value is true
{boolean} | bShowNoteInput | new value for property showNoteInput |
{sap.ca.ui.Notes} | this to allow method chaining |
textMaxLength
. Default value is 1000
{int} | iTextMaxLength | new value for property textMaxLength |
{sap.ca.ui.Notes} | this to allow method chaining |