スマートフィールドを使用して、次の図のようなものを設計したいと思います。
次のコードでデザインしようとすると:
<smartForm:GroupElement>
<smartField:SmartField value="{Vermieter}"/>
<smartField:SmartField value="{HIT}" textLabel="HIT"/>
<smartField:SmartField value="{Konzessionär}" textLabel="Konzessionär"/>
</smartForm:GroupElement>
私が受け取るのは次の結果です:
まず第一に、ラベルが欠落しています。
そして第二に、位置は完全に正しくありません。2番目と3番目のアイテム間の距離は、1番目と2番目のアイテム間の距離と同じではありません。
なにか提案を?
更新
@MrNajzsのコメントのおかげで、私は次の進歩を遂げました。
<smartForm:GroupElement>
<smartField:SmartLabel labelFor="Vermieter"/>
<smartField:SmartField value="{Vermieter}" id="Vermieter"/>
<smartField:SmartLabel labelFor="HIT"/>
<smartField:SmartField value="{HIT}" id="HIT"/>
<smartField:SmartLabel labelFor="Konzessionaer"/>
<smartField:SmartField value="{Konzessionär}" id="Konzessionaer"/>
</smartForm:GroupElement>
しかし、それでもいくつかの問題があります。要素はまだ調整されていません。出力は次のとおりです。
これが答えです。要素ごとに異なるものGroup
を使用し、GridData
レイアウトを使用する必要があります。
<smartForm:SmartForm flexEnabled="false">
<smartForm:Group >
<smartForm:GroupElement>
<smartField:SmartField value="{RstID}" width="auto" contextEditable="true" >
<smartField:configuration>
<smartField:Configuration preventInitialDataFetchInValueHelpDialog="false" displayBehaviour="descriptionOnly"/>
</smartField:configuration>
</smartField:SmartField>
</smartForm:GroupElement>
</smartForm:Group>
</smartForm:SmartForm>
<smartForm:SmartForm flexEnabled="false">
<smartForm:layout>
<smartForm:Layout labelSpanL="9" labelSpanM="9" labelSpanS="12" columnsL="3" columnsM="3" />
</smartForm:layout>
<smartForm:Group>
<smartForm:layoutData>
<l:GridData span="L4 M3 S6" indent="L1 M3"/>
</smartForm:layoutData>
<smartForm:GroupElement>
<smartField:SmartField value="{Vermieter}"/>
</smartForm:GroupElement>
</smartForm:Group>
<smartForm:Group>
<smartForm:layoutData>
<l:GridData span="L3 M3 S6"/>
</smartForm:layoutData>
<smartForm:GroupElement>
<smartField:SmartField value="{HIT}"/>
</smartForm:GroupElement>
</smartForm:Group>
<smartForm:Group>
<smartForm:layoutData>
<l:GridData span="L3 M3 S6"/>
</smartForm:layoutData>
<smartForm:GroupElement>
<smartField:SmartField value="{Konzessionär}"/>
</smartForm:GroupElement>
</smartForm:Group>
</smartForm:SmartForm>
それでも、1行目と2行目の空きスペースにはいくつかの違いがあることがわかるので、完全な解決策ではありませんが、それでも無視できます。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加