Automated: create new component page |
update |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|Name=Feed Quantity Field Interface`2 | |Name=Feed Quantity Field Interface`2 | ||
}} | }} | ||
The '''FeedQuantityFieldInterface''' component is used as a template type item in data feed mappers in the [[Data Feeds]] system. | |||
== | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|ItemName|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''| | |HasData|Bool| {{Template:FeedItemInterface_HasData}} | ||
|ItemKey|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''| | |ItemName|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''|TypeAdv1=true| {{Template:FeedItemInterface_ItemName}} | ||
|ItemDescription|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''| | |ItemKey|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''|TypeAdv2=true| {{Template:FeedItemInterface_ItemKey}} | ||
|HasDescription|'''[[Type:IField`1|IField`1]]<[[Type:Bool|Bool]]>'''| | |ItemDescription|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''|TypeAdv3=true| {{Template:FeedItemInterface_ItemDescription}} | ||
|DescriptionCleanup|Slot| | |HasDescription|'''[[Type:IField`1|IField`1]]<[[Type:Bool|Bool]]>'''|TypeAdv4=true| {{Template:FeedItemInterface_HasDescription}} | ||
|ItemIcon|'''[[Type:IField`1|IField`1]]<[[Type:Uri|Uri]]>'''| | |DescriptionCleanup|Slot| {{Template:FeedItemInterface_DescriptionCleanup}} | ||
|HasIcon|'''[[Type:IField`1|IField`1]]<[[Type:Bool|Bool]]>'''| | |ItemIcon|'''[[Type:IField`1|IField`1]]<[[Type:Uri|Uri]]>'''|TypeAdv6=true| {{Template:FeedItemInterface_ItemIcon}} | ||
|IconCleanup|Slot| | |HasIcon|'''[[Type:IField`1|IField`1]]<[[Type:Bool|Bool]]>'''|TypeAdv7=true| {{Template:FeedItemInterface_HasIcon}} | ||
|View|'''[[Type:SyncRef`1|SyncRef`1]]<[[Type:IDataFeedView|IDataFeedView]]>'''| | |IconCleanup|Slot| {{Template:FeedItemInterface_IconCleanup}} | ||
|ParentContainer|'''[[Component:FeedItemInterface|FeedItemInterface]]'''| | |View|'''[[Type:SyncRef`1|SyncRef`1]]<[[Type:IDataFeedView|IDataFeedView]]>'''|TypeAdv9=true| {{Template:FeedItemInterface_View}} | ||
|ChildContainer|Slot| | |ParentContainer|'''[[Component:FeedItemInterface|FeedItemInterface]]'''|TypeAdv10=true| {{Template:FeedItemInterface_ParentContainer}} | ||
|NestedItems|{{RootFieldType|SyncList`1|[[ | |ChildContainer|Slot| {{Template:FeedItemInterface_ChildContainer}} | ||
|EnabledState|'''[[Type:IField`1|IField`1]]<[[Type:Bool|Bool]]>'''| | |NestedItems|{{RootFieldType|SyncList`1|[[Component:FeedItemInterface#NestedItem|FeedItemInterface.NestedItem]]}}|TypeAdv12=true| {{Template:FeedItemInterface_NestedItems}} | ||
|Value|'''[[Type:IField`1|IField`1]]<T>'''| | |EnabledState|'''[[Type:IField`1|IField`1]]<[[Type:Bool|Bool]]>'''|TypeAdv13=true| {{Template:FeedItemInterface_EnabledState}} | ||
|Formatting|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''| | |Value|'''[[Type:IField`1|IField`1]]<T>'''|TypeAdv14=true| The field to write to and read the value from the source data feed item for this template. | ||
|Min|'''[[Type:IField`1|IField`1]]<T>'''| | |Formatting|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''|TypeAdv15=true| The field to populate with the format string that should be used when displaying the value. | ||
|Max|'''[[Type:IField`1|IField`1]]<T>'''| | |Min|'''[[Type:IField`1|IField`1]]<T>'''|TypeAdv16=true| The field to fill with the minimum value this quantity can be. | ||
|DefaultUnit|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''| | |Max|'''[[Type:IField`1|IField`1]]<T>'''|TypeAdv17=true| The field to fill with the maximum value this quantity can be. | ||
|FormatUnit|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''| | |DefaultUnit|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''|TypeAdv18=true| The field to fill with the denoter for the default unit for this quantity type. | ||
|FormatNumber|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''| | |FormatUnit|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''|TypeAdv19=true| Usually points to the FormatUnit on a [[Component:QuantityTextFormatDriver|QuantityTextFormatDriver]]. | ||
|CompoundFormatUnits|'''[[Type:SyncFieldList`1|SyncFieldList`1]]<[[Type:String|String]]>'''| | |FormatNumber|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''|TypeAdv20=true| Usually points to the FormatNumber on a [[Component:QuantityTextFormatDriver|QuantityTextFormatDriver]]. | ||
|CompoundOverrideNames|'''[[Type:IField`1|IField`1]]<[[Type:Bool|Bool]]>'''| | |CompoundFormatUnits|'''[[Type:SyncFieldList`1|SyncFieldList`1]]<[[Type:String|String]]>'''|TypeAdv21=true| Usually points to the CompoundFormatUnits on a [[Component:QuantityTextFormatDriver|QuantityTextFormatDriver]]. | ||
|CompoundSeparator|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''| | |CompoundOverrideNames|'''[[Type:IField`1|IField`1]]<[[Type:Bool|Bool]]>'''|TypeAdv22=true| Usually points to the CompoundOverrideNames on a [[Component:QuantityTextFormatDriver|QuantityTextFormatDriver]]. | ||
|CompoundUseLongNames|'''[[Type:IField`1|IField`1]]<[[Type:Bool|Bool]]>'''|TypeAdv23=true| Usually points to the CompoundUseLongNames on a [[Component:QuantityTextFormatDriver|QuantityTextFormatDriver]]. | |||
|CompoundSeparator|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''|TypeAdv24=true| Usually points to the CompoundSeparator on a [[Component:QuantityTextFormatDriver|QuantityTextFormatDriver]]. | |||
}} | }} | ||
== | == Usage == | ||
== Examples == | == Examples == | ||
== See Also == | == See Also == | ||
* [[Data Feeds]] | |||
* [[Component:QuantityTextFormatDriver|QuantityTextFormatDriver]] | |||
[[Category:Components:Radiant UI:Data Feeds:Interfaces{{#translation:}}|Feed Quantity Field Interface`2]] | [[Category:Components:Radiant UI:Data Feeds:Interfaces{{#translation:}}|Feed Quantity Field Interface`2]] | ||
[[Category:Components{{#translation:}}|Feed Quantity Field Interface`2]] | [[Category:Components{{#translation:}}|Feed Quantity Field Interface`2]] | ||
[[Category:Generic Components{{#translation:}}|Feed Quantity Field Interface`2]] | [[Category:Generic Components{{#translation:}}|Feed Quantity Field Interface`2]] | ||
Latest revision as of 20:36, 19 March 2025
Component image 
Feed Quantity Field Interface`2 component as seen in the Scene Inspector

The FeedQuantityFieldInterface component is used as a template type item in data feed mappers in the Data Feeds system.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
HasData
|
Bool | The field to set when this interface is templated by a data feed for whether it has data or not. |
ItemName
|
IField`1<String> | The field to fill with the name of the interface item when it is templated via a data feed. For settings toggles, this would be the toggle name. |
ItemKey
|
IField`1<String> | The field to fill with the interfaces key if it is a dictionary type item. |
ItemDescription
|
IField`1<String> | The field to fill with the template description when template via a data feed. |
HasDescription
|
IField`1<Bool> | Whether the item when templated via a data feed has a description. |
DescriptionCleanup
|
Slot | If this interface doesn't have a description during templating via a data feed, then delete the slot specified. |
ItemIcon
|
IField`1<Uri> | The resource URL to fill with an image link/URI if the data feed item has an icon. |
HasIcon
|
IField`1<Bool> | Whether this template has an icon. This is set during duplication as a template via a data feed. |
IconCleanup
|
Slot | The slot to delete when this interface item doesn't have an icon when being duplicated as a template item by a data feed. |
View
|
SyncRef`1<IDataFeedView> | The data feed view that this template was instantiated by. Like a SingleFeedView. |
ParentContainer
|
FeedItemInterface | This template's parent container. If that template also has a parent and a child, then it recursively goes up the containers till it finds the root interface with a parent and a child interface, then instantiates that interfaces child interface and it's Nested items instead of just this interface. |
ChildContainer
|
Slot | This template's child template which it instanciates if it's part of a parent child structure of interfaces. |
NestedItems
|
list of FeedItemInterface.NestedItem | A list of extra data feed items to instantiate the same as this one with the same arguments, except each one can be Nested under this item. |
EnabledState
|
IField`1<Bool> | The enabled state of this feed interface item UI element. |
Value
|
IField`1<T> | The field to write to and read the value from the source data feed item for this template. |
Formatting
|
IField`1<String> | The field to populate with the format string that should be used when displaying the value. |
Min
|
IField`1<T> | The field to fill with the minimum value this quantity can be. |
Max
|
IField`1<T> | The field to fill with the maximum value this quantity can be. |
DefaultUnit
|
IField`1<String> | The field to fill with the denoter for the default unit for this quantity type. |
FormatUnit
|
IField`1<String> | Usually points to the FormatUnit on a QuantityTextFormatDriver. |
FormatNumber
|
IField`1<String> | Usually points to the FormatNumber on a QuantityTextFormatDriver. |
CompoundFormatUnits
|
SyncFieldList`1<String> | Usually points to the CompoundFormatUnits on a QuantityTextFormatDriver. |
CompoundOverrideNames
|
IField`1<Bool> | Usually points to the CompoundOverrideNames on a QuantityTextFormatDriver. |
CompoundUseLongNames
|
IField`1<Bool> | Usually points to the CompoundUseLongNames on a QuantityTextFormatDriver. |
CompoundSeparator
|
IField`1<String> | Usually points to the CompoundSeparator on a QuantityTextFormatDriver. |