jayel Active Member Licensed User Longtime User Sep 8, 2016 #1 Hello, When I add a button on teh second cell of the row I want to right align the button. Float-right in css. How can I to that?
Hello, When I add a button on teh second cell of the row I want to right align the button. Float-right in css. How can I to that?
alwaysbusy Expert Licensed User Longtime User Sep 8, 2016 #2 You have to create a cell theme for this: theme.AddCellTheme("alignright") theme.Cell("alignright").Align = ABM.CELL_ALIGN_RIGHT This theme can be used designing the grid: page.AddRows(1,True, "").AddCellsOS(3,0,0,0,4,4,4,"alignright") now, components added to this cell should align to the right. Upvote 0
You have to create a cell theme for this: theme.AddCellTheme("alignright") theme.Cell("alignright").Align = ABM.CELL_ALIGN_RIGHT This theme can be used designing the grid: page.AddRows(1,True, "").AddCellsOS(3,0,0,0,4,4,4,"alignright") now, components added to this cell should align to the right.
jayel Active Member Licensed User Longtime User Sep 8, 2016 #3 OK but on the same row 2 cells one align left and one align right B4X: page.AddRows(2,"True","").AddCellsOS(2,0,0,0,6,6,6,"alignright") This doens't do it. Upvote 0
OK but on the same row 2 cells one align left and one align right B4X: page.AddRows(2,"True","").AddCellsOS(2,0,0,0,6,6,6,"alignright") This doens't do it.
alwaysbusy Expert Licensed User Longtime User Sep 8, 2016 #4 No. You should do it as: page.AddRows(2,"True","").AddCellsOS(1,0,0,0,6,6,6,"").AddCellsOS(1,0,0,0,6,6,6,"alignright") Upvote 0
No. You should do it as: page.AddRows(2,"True","").AddCellsOS(1,0,0,0,6,6,6,"").AddCellsOS(1,0,0,0,6,6,6,"alignright")
jayel Active Member Licensed User Longtime User Sep 9, 2016 #5 I suppose if I want to also vertrical align center I have to do this ? B4X: MyTheme.AddCellTheme("alignright") MyTheme.Cell("alignright").Align = ABM.CELL_ALIGN_RIGHT MyTheme.Cell("alignright").VerticalAlign = ABM.CELL_ALIGN_CENTER Right? Upvote 0
I suppose if I want to also vertrical align center I have to do this ? B4X: MyTheme.AddCellTheme("alignright") MyTheme.Cell("alignright").Align = ABM.CELL_ALIGN_RIGHT MyTheme.Cell("alignright").VerticalAlign = ABM.CELL_ALIGN_CENTER Right?