1
'組件對齊'被識別,但不受尊重。請注意':' - 前綴,因爲必須在父組件上設置此屬性。如何使用Vaadin聲明式UI進行組件對齊?
<v-panel size-full>
<v-vertical-layout size-full>
<v-horizontal-layout width="100%">
<v-image source="theme://logo.gif" :component-alignment="MIDDLE_RIGHT" />
<v-menu-bar _id="menu" width="100%" :component-alignment="BOTTOM_RIGHT" />
</v-horizontal-layout>
</v-vertical-layout>
</v-panel>
謝謝!請注意,「:component-alignment」不會被報告爲錯誤的語法。 – rmuller
@rmuller沒問題,很高興我能幫上忙。我不確定,但我認爲Vaadin解析器會在運行時默默地忽略這些_extra attributes_,除非您的IDE使用XSD驗證模板,否則在開發過程中也無法知道。 – Morfic