1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

B4J Question [ABMaterial] Before I place a New Component Request

Discussion in 'B4J Questions' started by Cableguy, Apr 27, 2019.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi Alain,

    I know I should have posted this in the feedback app, but I am unsure it is not already possible to acomplish this (re)using one of the existing components.

    My goal is to create a Grid like Button/Card array like this one
    [​IMG]
    110827729-content-management-system-infographic-icon-set.jpg

    I only need to create the single Card/Button. I need it to have a click event so that I can navigate to a different page...
    So, before I place a New Component Request… Can this be already be done?
     
  2. jahswani

    jahswani Active Member Licensed User

  3. Cableguy

    Cableguy Expert Licensed User

    I may have not be very clear...
    I mean the component itself, not the grid...
     
  4. XbNnX_507

    XbNnX_507 Active Member Licensed User

    You can create a AbmaterialContainer with an image and a label
    Code:
    In buildpage()
    Abmaterial.container.addrow(
    1).addcell(4)
    ...Build!.

    In connect()
    Abmaterial.container.cell(
    1,1).addcmp(abmImage)
    ..abmaterial.container.cell(
    1,1).addcmp(amblabel) ' backcolor the same as the image
     
    Cableguy likes this.
  5. Cableguy

    Cableguy Expert Licensed User

    That's not a bad Idea!
     
  6. alwaysbusy

    alwaysbusy Expert Licensed User

    Using ABMContainers is indeed the way to go to design such a component.

    Maybe you can use a grid (2 rows, each 4 cells), adding such an ABMContainer in each cell. If you design your grid right, the responsiveness of the grid will jump in and e.g. on your phone place them under each other.
     
    Harris likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice