Class: PhlexUI::Base
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- PhlexUI::Base
- Defined in:
- lib/phlex_ui/base.rb
Direct Known Subclasses
Accordion, Accordion::Builder, Accordion::Content, Accordion::DefaultContent, Accordion::DefaultTrigger, Accordion::Icon, Accordion::Item, Accordion::Trigger, Alert, Alert::Description, Alert::Title, AlertDialog, AlertDialog::Action, AlertDialog::Cancel, AlertDialog::Content, AlertDialog::Description, AlertDialog::Footer, AlertDialog::Header, AlertDialog::Title, AlertDialog::Trigger, AspectRatio, Avatar, Avatar::Builder, Avatar::Fallback, Avatar::Image, Badge, Button, Calendar, Calendar::Body, Calendar::Days, Calendar::Header, Calendar::Next, Calendar::Prev, Calendar::Title, Calendar::Weekdays, Card, Card::Content, Card::Description, Card::Footer, Card::Header, Card::Title, Chart, Checkbox, Clipboard, Clipboard::Popover, Clipboard::Source, Clipboard::Trigger, Codeblock, Collapsible, Collapsible::Content, Collapsible::Trigger, Command, Command::Dialog, Command::DialogContent, Command::DialogTrigger, Command::Empty, Command::Group, Command::Input, Command::Item, Command::List, ContextMenu, ContextMenu::Content, ContextMenu::Item, ContextMenu::Label, ContextMenu::Separator, ContextMenu::Trigger, Dialog, Dialog::Content, Dialog::Description, Dialog::Footer, Dialog::Header, Dialog::Middle, Dialog::Title, Dialog::Trigger, DropdownMenu, DropdownMenu::Content, DropdownMenu::Item, DropdownMenu::Label, DropdownMenu::Separator, DropdownMenu::Trigger, Form, Form::Builder, Form::Item, Form::Spacer, Hint, HoverCard, HoverCard::Content, HoverCard::Trigger, Input, InputError, Label, Link, Pagination, Pagination::Content, Pagination::Ellipsis, Pagination::Item, Popover, Popover::Content, Popover::Trigger, Select, Select::Builder, Select::Content, Select::Group, Select::Input, Select::Item, Select::Label, Select::Trigger, Select::Value, Sheet, Sheet::Content, Sheet::Description, Sheet::Footer, Sheet::Header, Sheet::Middle, Sheet::Title, Sheet::Trigger, ShortcutKey, Table, Table::Body, Table::Builder, Table::Caption, Table::Cell, Table::Footer, Table::Head, Table::Header, Table::Row, Tabs, Tabs::Content, Tabs::List, Tabs::Trigger, ThemeToggle, Tooltip, Tooltip::Content, Tooltip::Trigger
Instance Attribute Summary collapse
-
#attrs ⇒ Object
readonly
Returns the value of attribute attrs.
Instance Method Summary collapse
- #before_template ⇒ Object
-
#initialize(**user_attrs) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(**user_attrs) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/phlex_ui/base.rb', line 7 def initialize(**user_attrs) @attrs = PhlexUI::AttributeMerger.new(default_attrs, user_attrs).call end |
Instance Attribute Details
#attrs ⇒ Object (readonly)
Returns the value of attribute attrs.
5 6 7 |
# File 'lib/phlex_ui/base.rb', line 5 def attrs @attrs end |
Instance Method Details
#before_template ⇒ Object
12 13 14 15 |
# File 'lib/phlex_ui/base.rb', line 12 def before_template comment { "Before #{self.class.name}" } super end |