An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          


LesliView logo

View elements & components for The Lesli Framework.







Gem Version










### 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/.





Lesli logo

Ruby on Rails SaaS Development Framework.