Git Product home page Git Product logo

ajui_alignment's Introduction

AJUI_Alignment

This is a 4D Component to help aligning form objects in a 4D application.

It is still in devlopment so feel free to test and participate to it.

You can find, in the 4D_Flex_alignment_PROTO.json file, the definition structure that will tell how the container and its items will behave.

Not everything is yet implemented :

Feature Implemented
display
alignContent
alignItems
direction
wrap
justifyContent
padding
margin
marginRight
marginTop
marginLeft
marginBottom
height
width
minHeight
minWidth
maxHeight
maxWidth
items (recursive)

The purpose was to provide something similar to what we have with CSS flexbox. But more I tried to implement the same more it became complicated. That is why I started up from scratch and went down to justifyContent and stopped (because of lack of time also). Maybe we should not try to have something too much complicated and what we have today is enough.

The code is not too much factorized because it will slow down a lot the execution cycle (tried during the devlopment phase). The purpose is to execute the alignment during the On Resize event so it must be really fast not to make the resizing be laggy. Maybe it is even possible to speed up the execution by doing some optimization (for instead of for each?)

Tests

You can do some tests with the flexboxFormTest by launching the launch_flexboxFormTest method. The description of the items are in the Resources/test1.json file.

ajui_alignment's People

Contributors

minzirillo avatar

Watchers

 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.