Krzysztof Zielinski
Krzysztof Zielinski

Reputation: 400

Create own widget that can interpret html inside

I want to create own widget that will be able to interpret the text between start and end tag, eg:

<p1:Btn ui:field="open" >Open</p1:Btn>

Now the UI binder throws error:

Unexpected text in element: "Open" Element <p1:Btn ui:field='open'> (:44)

I supose that the widget have to be somehow marked to allow elements inside. The second thing is how read the element between tags.

Upvotes: 2

Views: 295

Answers (1)

Boris Brudnoy
Boris Brudnoy

Reputation: 2460

Your widget needs simply implement the HasText interface.

Upvotes: 4

Related Questions