Class sap.ui.ux3.FeederModule: sap/ui/ux3/Feeder
This feed control flavor represents a lean common feed, or a comment feed, with a text commit function. The control can be used stand alone or in a multiple way, and generally would be integrated directly into a UIArea.
Deprecated API:Since version 1.38. Instead, use the sap.m.FeedInput
control.
Experimental API:Since version 1.2. The whole Feed/Feeder API is still under discussion, significant changes are likely. Especially text presentation (e.g. @-references and formatted text) is not final. Also the Feed model topic is still open.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the submit
event of this sap.ui.ux3.Feeder
.fnFunction
from the submit
event of this sap.ui.ux3.Feeder
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- thumbnailSrc : sap.ui.core.URI
- text : string
- type : sap.ui.ux3.FeederType (default: Large)
- placeholderText : string
- Events
- submit : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Control 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.38. Instead, use the
sap.m.FeedInput
control.
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{string} | oControlEvent.getParameters.text | The text that is submitted |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
fnFunction
to the submit
event of this sap.ui.ux3.Feeder
. When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.ux3.Feeder
itself.
Event is fired when the entered text is submitted
{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 be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.Feeder itself |
{sap.ui.ux3.Feeder} | Reference to this in order to allow method chaining |
fnFunction
from the submit
event of this sap.ui.ux3.Feeder
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.ui.ux3.Feeder} | Reference to this in order to allow method chaining |
submit
to attached listeners. Expects the following event parameters:
text
of typestring
The text that is submitted
{Map} | mArguments? | The arguments to pass along with the event |
{sap.ui.ux3.Feeder} | Reference to this in order to allow method chaining |
placeholderText
. This property could be used for costum placeholder. If it is not set, the default text is used.
{string} | Value of property placeholderText |
text
. The text for the Feeder. @References are supported.
{string} | Value of property text |
thumbnailSrc
. URL to the thumb nail image This property is optional if the feeder is a sub-control of a feed or a feedChunk control. In this case the value of the feed or feddChunk control is used if it's not set. So it must be only set once on the feed or feedChunk control.
{sap.ui.core.URI} | Value of property thumbnailSrc |
type
. Type and size of the Feeder
Default value is Large
.
{sap.ui.ux3.FeederType} | Value of property type |
placeholderText
. This property could be used for costum placeholder. If it is not set, the default text is used.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sPlaceholderText | New value for property placeholderText |
{sap.ui.ux3.Feeder} | Reference to this in order to allow method chaining |
text
. The text for the Feeder. @References are supported.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sText | New value for property text |
{sap.ui.ux3.Feeder} | Reference to this in order to allow method chaining |
thumbnailSrc
. URL to the thumb nail image This property is optional if the feeder is a sub-control of a feed or a feedChunk control. In this case the value of the feed or feddChunk control is used if it's not set. So it must be only set once on the feed or feedChunk control.
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.URI} | sThumbnailSrc | New value for property thumbnailSrc |
{sap.ui.ux3.Feeder} | Reference to this in order to allow method chaining |
type
. Type and size of the Feeder
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Large
.
{sap.ui.ux3.FeederType} | sType | New value for property type |
{sap.ui.ux3.Feeder} | Reference to this in order to allow method chaining |