Giter VIP home page Giter VIP logo

ajui_button's Introduction

GitHub release (latest SemVer including pre-releases) GitHub top language DEPRECATED

AJUI_Button

Source published

This repository will not be used anymore. Please look at AJUI_Button_sources.




NEW VERSION 2.0.0-BETA1

!!! BREAKING CHANGES !!!

In the new 2.0.0-beta1 some breaking changes have been introduced. All the class functions have been changed. See the documentation Class Functions.

For compatibiliy reasons, the old functions have not been changes if you are not using the class.

AJUI Button is a component made for 4D that help you to create and display nice buttons in your forms. You can fully customize your buttons and have templates to easily use the same style everywhere in your application.

A button is created via the language and will be displayed in a picture element in your form. The button is stored in an object that is an instance of a button.

AJUI components library

AJUI_Library

Documentation

Wiki AJUI_Button

Example

    Case of
      : (Form event=On Load)
        Form.save_btn:=AJUI_Button.new()

        Form.save_btn.name("save_btn")
        Form.save_btn.composition("text")

        Form.save_btn.label("Save")
        Form.save_btn.backgroundColor(AJUI_btn_default;"white")
        Form.save_btn.borderColor(AJUI_btn_default;"#47A1F1")
        Form.save_btn.borderSize(AJUI_btn_default;2)
        Form.save_btn.fontStyle(AJUI_btn_default;"none")
        Form.save_btn.fontColor(AJUI_btn_default;"#47A1F1")

        Form.save_btn.backgroundColor(AJUI_btn_hover;"#47A1F1")
        Form.save_btn.borderColor(AJUI_btn_hover;"white")
        Form.save_btn.borderSize(AJUI_btn_hover;2)
        Form.save_btn.fontStyle(AJUI_btn_hover;"Bold")
        Form.save_btn.fontColor(AJUI_btn_hover;"white")
    End case

    Form.save_btn.draw()

AJUI_Button Example

Version

2.0.0-beta1+Build183 // Sat, 28 Nov 2020 13:37:14 GMT

Minimal 4D Version :

  • version <= 1.3.2 : 18 (using formula member function)
  • version > 1.3.2 18 R3/4 (using class)

Questions?

If you have any question, you can ask them directly on github or write to [email protected]

ajui_button's People

Contributors

minzirillo avatar zankorius avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ajui_button's Issues

Impossible to change the alignement of the label in text button

Describe the bug
The bug can be reproduced in the AJUI_Button Lab.

Changing the property "textAlign" of a text button does nothing. And actually in a other base when I create a button and try to change the property like this :

Form.btn1.TextAlign(AJUI_btn_default; "left")

It throws an error : A member 'function' is expected

The documentation (French and English) make absolutely no references of this property, only of compTextAlign that does not work either for text buttons.

To Reproduce
Steps to reproduce the behavior:

  1. Open AJUI_Button Lab
  2. Change the property "textAlign" in a text button

Current behavior
Nothing

Expected behavior
Label align itself to the left or the right

Desktop (please complete the following information):

  • OS: Mac OS 10.15.7
  • 4D v18 R5.258326

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.