は、それは全く同じです。
<ObjectIdentifier text="{ path: 'some-path',
type: 'sap.ui.model.type.Date',
formatOptions: {source: {pattern: 'dd/MM/yyyy'}, style: 'long'}
}"
title="{ path: 'some-other-path',
type: 'sap.ui.model.type.Date',
formatOptions: {source: {pattern: 'dd/MM/yyyy'}, style: 'long'}
}" />
名前空間sap.ui.model.typeにはいくつかの定義済みタイプがあります。
XMLViewsでの使用は、あなたがformatter
またはtype
のいずれかを使用することができ、常に
{ path: 'some-path',
mode: 'sap.ui.model.BindingMode.OneWay' //See documentation of BindingMode for possible values
type: 'full.class.name or .propertyInController'
formatOptions: { .. } //object as described in the constructor documentation of the type
constraints: { .. } //object as described in the constructor documentation of the type
parameters: { .. } //object with additional binding parameters (most depending on the model type)
formatter: 'full.function.name or .functionInController'
}
です。 type
を使用する場合は、formatOptions
とconstraints
を使用できます。 mode
およびparameters
は常に使用できます。
あなただけpath
を供給する場合は、短縮形を使用することができますが、さまざまなオプション(プロパティのバインディングとは対照的に)集約バインディング用text="{some-path}"
を:なしtype
またはformatter
ありませんが、代わりにあなたがsorter
を提供することができ、 filter
。