We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HI,
I cannot seem to find the implementtion of the class viewflow.forms.Tag
viewflow.forms.Tag
From where to I import this?
regards
The text was updated successfully, but these errors were encountered:
i made a very crude implementation.
class Tag(LayoutNode): def __init__(self, text, tag_type, attribs: dict, **kwargs): self.text = text self.tag_type = tag_type self.attribs = attribs super().__init__(*kwargs) def append(self, layout: FormLayout, form: forms.Form, root: ElementTree.Element): ElementTree.SubElement( root, self.tag_type, self.attribs, )
and i am using it with alpine.js and it works
Tag( "Add company", "button", { "x-data": "{x:'+ New Company'}", "x-text": "x", "@click.prevent": "window.location ='/company_view/'", "class": "bg-crm-primary text-white px-4 py-2 rounded-lg hover:bg-gray-500", }, ),
Sorry, something went wrong.
No branches or pull requests
HI,
I cannot seem to find the implementtion of the class
viewflow.forms.Tag
From where to I import this?
regards
The text was updated successfully, but these errors were encountered: