Code Monkey home page Code Monkey logo

sciter-layout's Introduction

sciter layout

This is a sciter.js demo that explores the different block layout possibilities.

sciter layout screenshot

demo

  • git clone the repository
  • install packages npm install
  • install latest sciter sdk npm run install-sdk
  • start the demo npm run scapp

demo requirements

  • A recent version of Node.js node (tested with 16 LTS) and its package manager npm.

layout

Layout concepts are introduced in these articles:

flow

flow is the sciter analog to display: flex. Possible values are:

  • horizontal contained elements are on a horizontal line
  • vertical contained elements are on a vertical line
  • horizontal-wrap same as above with wrapping to the next line when the line is too long
  • row(item1, item2, ...) items are on a horizontal line
  • grid custom layout
  • stack elements are on top of each other
  • table, table-fixed ? add an example

flex length units

Flex length units are "weights" used in distribution of free space along some direction.

https://sciter.com/css-extensions-in-h-smile-engine-part-ii-flex-units/

%%

width: 50%;
margin-left: 30%%;
margin-right: 70%%;

*

1* == 100%%

width: 50%;
margin-left: 1*;
margin-right: 2*;

sciter-layout's People

Contributors

8ctopus avatar barbarararara avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.