Example #1
0
    def _build(self):

        Element._build(self)
        data_bound(self)

        self.add_resource("/resources/scripts/ItemSelector.js")
        self.set_client_param("emptyLabel", self.empty_label)

        self.input = templates.new("cocktail.html.HiddenInput")
        self.append(self.input)
        self.binding_delegate = self.input

        self.selection_label = templates.new("woost.views.ItemLabel")
        self.selection_label.tag = "span"
        self.selection_label.add_class("selection_label")
        self.append(self.selection_label)

        self.buttons = self.create_buttons()
        self.append(self.buttons)
 def _build(self):
     Element._build(self)
     self.add_resource("cocktail://scripts/tagcloudselector.js")