All Projects → victorqribeiro → Dial

victorqribeiro / Dial

Licence: mit
A Rotary Dial menu for input numbers

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Dial

Patternfly Design
Use this repo to file all new feature or design change requests for the PatternFly project
Stars: ✭ 82 (-49.38%)
Mutual labels:  gui, ux
Mahapps.metro.simplechildwindow
A simple child window for MahApps.Metro
Stars: ✭ 339 (+109.26%)
Mutual labels:  gui, ux
Zgui
zxvnme's graphical user interface
Stars: ✭ 204 (+25.93%)
Mutual labels:  gui, menu
Brisk Menu
An efficient menu for the MATE Desktop
Stars: ✭ 142 (-12.35%)
Mutual labels:  gui, menu
Oni
Oni: Modern Modal Editing - powered by Neovim
Stars: ✭ 11,466 (+6977.78%)
Mutual labels:  gui
Context Menu.ios
You can easily add awesome animated context menu to your app.
Stars: ✭ 1,854 (+1044.44%)
Mutual labels:  menu
Vue Ui For Pc
基于Vue2.x的一套PC端UI组件,包括了Carousel 跑马灯、Cascader 级联、Checkbox 多选框、Collapse 折叠面板、DatePicker 日期选择、Dialog 对话框、Form 表单、Input 输入框、InputNumber 数字输入框、Layer 弹窗层、Loading 加载、Menu 菜单、Page 分页、Progress 进度条、Radio 单选框、SelectDropDown 仿select、Switch 开关、Table 表格、Tabs 标签页、Textarea 文本框、Tooltip 文字提示、BackTop 返回顶部、steps 步骤条、Transfer 穿梭框、Tree 树形、Upload 文件上传、Lazy 图片懒加载、Loading 加载、Pagination 分页等等
Stars: ✭ 156 (-3.7%)
Mutual labels:  menu
Abandon
😌 Simple and Robust Accounting
Stars: ✭ 155 (-4.32%)
Mutual labels:  gui
Coordinatormenu
The library creates a floating menu like the app momo, vtcpay, wepay
Stars: ✭ 160 (-1.23%)
Mutual labels:  menu
Panandzoom
Pan and zoom control for Avalonia.
Stars: ✭ 159 (-1.85%)
Mutual labels:  gui
Vuegg
🐣 vue GUI generator
Stars: ✭ 2,056 (+1169.14%)
Mutual labels:  gui
Egui
egui: an easy-to-use immediate mode GUI in pure Rust
Stars: ✭ 5,980 (+3591.36%)
Mutual labels:  gui
Material
A UI/UX framework for creating beautiful applications.
Stars: ✭ 11,870 (+7227.16%)
Mutual labels:  ux
Scrcpy Gui
👻 A simple & beautiful GUI application for scrcpy. QQ群:734330215
Stars: ✭ 2,402 (+1382.72%)
Mutual labels:  gui
Flowframes
Flowframes Windows GUI for video interpolation using DAIN (NCNN) or RIFE (CUDA/NCNN)
Stars: ✭ 157 (-3.09%)
Mutual labels:  gui
Wxpython Tutorial
wxPython 中文简明教程
Stars: ✭ 155 (-4.32%)
Mutual labels:  gui
Nativebase Sketch Template
Sketch Template for NativeBase components
Stars: ✭ 157 (-3.09%)
Mutual labels:  ux
Chameleonmini Rebootedgui
Windows based GUI for Chameleon Mini, the contactless smartcard emulator (NFC/RFID)
Stars: ✭ 159 (-1.85%)
Mutual labels:  gui
Whatsapp For Linux
An unofficial WhatsApp desktop application for Linux.
Stars: ✭ 155 (-4.32%)
Mutual labels:  gui
Degate
Open source software for chip reverse engineering.
Stars: ✭ 156 (-3.7%)
Mutual labels:  gui

Rotary Dial

A Rotary Dial for input numbers.

RotaryDial

Live version here | Alternative link here

How to use it

Click / Touch the disc and drag it until the arrow. When the number reaches the arrow, it will turn red, then let go and that's your number.

How to use it on your web app

Include the RotaryDial.js file.

<script src="RotaryDial.js"></script>

Then create a new RotaryDial

const rd = new RotaryDial();

Creating a callback is easy, just define what your function will do with the number it receives from the RotaryDial.

const func = function(number){
	alert( number )
}

const rd = new RotaryDial({callback: func});

By default the RotaryDial has the console.log function as the callback.

Documentation

The RotaryDial accepts a configuration object on its constructor. The most import parts are the size and the callback. The size will determine the size of your rotary dial menu, and the callback determines which function will be called when a number is selected. Besides that, there are some color configurations you can fiddle with.

size - The size of the menu. Default 400px

callback - The function that will be called when a number is selected. Default console.log

discFillColor - The disc color.

discStrokeColor - The disc border color.

circlesFillColor - The circles (where the numbers are displayed) color.

circlesStrokeColor - The circles (where the numbers are displayed) border color.

circlesHighlightColor - The color that a circle will be displayed when a number is selected.

textFillColor - The text color.

textStrokeColor - The text border color.

arrowFillColor - The arrow color.

arrowStrokeColor - The arrow border color.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].