https://github.com/leslitech/lesliview
Reusable View Components for The Lesli Framework
https://github.com/leslitech/lesliview
Last synced: 9 months ago
JSON representation
Reusable View Components for The Lesli Framework
- Host: GitHub
- URL: https://github.com/leslitech/lesliview
- Owner: LesliTech
- License: mit
- Created: 2025-01-12T21:33:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-12T21:48:56.000Z (over 1 year ago)
- Last Synced: 2025-01-12T22:30:52.673Z (over 1 year ago)
- Language: Ruby
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
View elements & components for The Lesli Framework.
### Quick start
```shell
# Add LesliAdmin engine gem
bundle add lesli_view
```
```erb
<%# index.html.erb %>
<%= render LesliView::Layout::Container.new("shield-sessions") do %>
<%= render LesliView::Element::Header.new(title: "Sessions", back: true) do %>
<%= render(LesliView::Element::Button.new(icon: "add", solid:true)) do %>
Add new
<% end %>
<%= render(LesliView::Element::Button.new(icon: "refresh")) do %>
Reload
<% end %>
<% end %>
<%= render LesliView::Element::Toolbar.new() %>
<%= render(LesliView::Element::Table.new(
columns: columns,
records: @sessions[:records]
)) %>
<% end %>
```
```erb
<%# single component %>
<%= render(LesliView::Element::Button.new(icon: "refresh")) do %>
Reload
<% end %>
```
### Documentation
* [website](https://www.lesli.dev/)
* [database](./docs/database.md)
* [documentation](https://www.lesli.dev/gems/view/)
### Get in touch with Lesli
* [Email: hello@lesli.tech](hello@lesli.tech)
* [Website: https://www.lesli.tech](https://www.lesli.tech)
* [Twitter: @LesliTech](https://twitter.com/LesliTech)
### License
-------
Copyright (c) 2025, Lesli Technologies, S. A.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
Ruby on Rails SaaS Development Framework.