A Look at the Mozilla Technology and Architecture
  XBL example
    Here is an example binding that creates a captioned image widget:
    <binding name="captionimg" extends="xul:box">
     <content>
      <xul:box xmlns="[...]there.is.only.xul">
        <xul:image inherits="image:src"/>
        <xul:text inherits="caption:value"/>
      <xul:box/>
     </content>
    </binding>
    
    And then in your .xul file:
    <captionimg caption="My image caption"
      image="myimage.png"/>
    
Prev Top Next