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

https://github.com/genieframework/stippletabs.jl


https://github.com/genieframework/stippletabs.jl

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# StippleTabs.jl

Alternative UI tabs component for Stipple/StippleUI.
This component wraps Quasar's Q-Tabs component for Genie Builder compatibility.
Use it in combination with q-tab-panels and q-tab-panel to switch displayed content.

## Installation

To install the most recent released version of package:

```
pkg> add StippleTabs
```

## Usage

Create a simple `app.jl` script
```julia
module App

using GenieFramework
@genietools
using StippleTabs

@app begin
@out tab_ids = ["tab_1", "tab_2", "tab_3"]
@out tab_labels = ["Tab 1", "Tab 2", "Tab 3"]
@in selected_tab = "tab_1"
end

ui() = """


Tab 1 Contents


Tab 2 Contents


Tab 3 Contents

"""

@page("/", ui)

end
```