TAILIEUCHUNG - Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P4

Tham khảo tài liệu 'creating applications with mozilla-chapter 7. extending the ui with xbl- p4', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 7. Extending the UI with XBL- P4 . Extra Binding Content and Insertion Points All examples in the chapter have so far dealt with standard binding content rendering within a bound document. The processes outlined in this section can in one sense be seen as abnormal because they allow ordering of the content to change based on insertion points defined in the binding. This process is done with the XBL children element . Working with children of the bound element Zero or more children can be contained in anonymous content. These children are marked up with the XBL-specific children tag. They can be either the content of the element using the binding or anonymous content generated by the base binding. If the children tag contains its own elements then it will be used as the default content. If the element the binding is attached to contains children the default content will be ignored. The location of the children tags determines the content s insertion point. Insertion points play an important role in the generation of content within a template because they affect how the content is displayed and accessed by the DOM. binding id my-binding content xul vbox children xul vbox content binding This stripped-down binding has only a vertical box as its own content and looks to the children of the bound element for more content by using the children element. Here is the XUL content that uses the binding mybinding id myNewWidget flex 1 class attached label value this is child 1 label value this is child 2 mybinding When the binding is attached and the content is drawn the insertion point for the two labels is inside the container vertical box inside the binding. This scenario could be used when a binding is used multiple times. Each time it needs to be rendered differently with extra content that can be provided this way. . Selective inclusion Sometimes multiple siblings are located within a box in the XUL but you want to use only some of them in the

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.