Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ppibburr/opal-ui
A GUI Toolkit in your Browser
https://github.com/ppibburr/opal-ui
Last synced: 2 months ago
JSON representation
A GUI Toolkit in your Browser
- Host: GitHub
- URL: https://github.com/ppibburr/opal-ui
- Owner: ppibburr
- Created: 2014-08-15T02:42:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-04T02:15:54.000Z (over 10 years ago)
- Last Synced: 2024-07-05T15:11:34.794Z (6 months ago)
- Language: Ruby
- Homepage:
- Size: 1.12 MB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-opal - Opal UI - A GUI Toolkit in your Browser (Uncategorized / Uncategorized)
README
opal-ui
=======GUI ToolKit inpsired by Gtk for use with opal and opal-browser
Example (Standard)
===
```ruby
include PBR::OpalUIDefaultTheme.apply()
Window.new(size:[400,400]).
add(
Accordian.new.
append(label:"foo", icon:"http://google.com/favicon.ico") do |item|
item.add TextView.new do |v|
v.text("
Sample Text
")
end
end.
append(label:"bar") do |item|
item.add(
Frame.new(label:"Book Example").
add(Notebook.new) do |nb|
5.times do |i|
nb.append(label:"Page #{i}") do |pg, t|
pg.add TextView.new(text:"Page #{i} content")
end
end
nb.page(2)
end
)
end.
item(1)
)```