Skip to content

Rakhisharma/KitchenSink

 
 

Repository files navigation

KitchenSink

Present typical UI patterns in a form that is easy to apply in any Starcounter app.

Features:

  • Rendering (Breadcrumb, Chart, Datagrid, HTML, Link, Map, Markdown, Pagination, Table)
  • Server Push (Async Response, Cookies, Dialog Box, Flash Message, Lazy Loading, Nested Views, Progress Bar, Redirect, Client Local State)
  • User Input (Autocomplete, Button, Checkbox, Datepicker, Dropdown, Decimal Input, File Upload, Integer Input, Multiselect, Password, Radio Button, Radiolist, Text Input, Textarea, Toggle Button, Validation)

The guidelines for this project are:

  • Do not put styles or HTML classes in the light DOM because they pollute the global scope.
  • ✔️ Put unstyled HTML and custom elements in the light DOM and style them in the Shadow DOM.
  • Do not keep application logic in JavaScript, especially avoid JavaScript that pollutes the global scope.
  • ✔️ Keep presentation logic in custom elements. Install external custom elements via Bower.
  • ✔️ Use external libraries in C# when helpful. Install them via NuGet.

It is recommended to follow these guidelines for Starcounter apps in general.

Requirements

This repository uses features from C# 7. Thus, Visual Studio 2017 is required to build.

If you really want to use VS 2015 and you don't care about IntelliSense warnings, you can build by installing Microsoft.Net.Compilers in the project using NuGet (Install-Package Microsoft.Net.Compilers). That will make VS use the C# compiler provided in the package instead of the default one.

Developer instructions - Contributing

For developer instructions, go to CONTRIBUTING.

Video

Intended for 13 October 2015 webinar: http://starcounter.io/video-expressing-your-ui-in-json-plain-data-binding-advanced-data-binding/

Screenshot

License

MIT

About

Shows how to model different UI patterns in JSON

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 85.4%
  • HTML 12.5%
  • C# 1.1%
  • CSS 1.0%
  • Batchfile 0.0%
  • Roff 0.0%