dynamic-columns

Bootstrap 4 Columns float style like Bootstrap 3 is it possible?

情到浓时终转凉″ 提交于 2019-12-08 05:45:37
问题 i start developing with bootstrap 4 and now i found this problem : when using bootstrap 3 column system, because it uses float, we could insert multiple columns inside a row and it wold fill the space depending on the "col-size" specified, like this : http://codepen.io/seltix/pen/QpXvRJ ------- ------- ------- | COL 1 | | COL 2 | | COL 3 | | | ------- ------- | | | COL 4 | | COL 5 | ------- ------- ------- <div class="container-fluid"> <div class="row"> <div class="col-sm-6 panel height-1">

how to get primefaces datatable columns order and width from ManagedBean

寵の児 提交于 2019-12-06 05:15:29
i'm using primefaces 4.0, JSF Mojarra 2.2.2 and here is my datatable code : <p:dataTable id="tabexam" paginatorPosition="bottom" var="exam" value="#{dyna.examViewDataModel}" widgetVar="examTable" emptyMessage="aucun résultat trouvé pour votre recherche" paginator="true" rows="40" selection="#{dyna.selectedExamen}" filteredValue="#{dyna.filteredexams}" selectionMode="single" resizableColumns="true" draggableColumns="true" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="40,80,120"> <p

CSS dynamic responsive column layout

断了今生、忘了曾经 提交于 2019-12-04 07:23:21
I have been searching for answers but could not find anything that solves my problem. I have a website with dynamic content. What I want is that the content flows into columns when possible, in order to minimize scrolling. The items have dynamic heights. xxx item 1 xxx | xxx item 4 xxx xxxxxxxxxxxxxx | xxxxxxxxxxxxxx xxxxxxxxxxxxxx |------------------ ------------------| xxx item 5 xxx xxx item 2 xxx | xxxxxxxxxxxxxx xxxxxxxxxxxxxx |------------------ ------------------| xxx item 6 xxx xxx item 3 xxx | xxxxxxxxxxxxxx xxxxxxxxxxxxxx | xxxxxxxxxxxxxx But when the browser window is resized, I

How to generate dynamic columns in JSF Datatable?

久未见 提交于 2019-12-04 01:13:35
问题 Would like to have following data table structure: +--------------------------------------------------------------+ | dynamic | dynamic | dynamic | |--------------------------------------------------------------| | col1 | col2 | col3 | col1 | col2 | col3 | col1 | col2 | col3 | |--------------------------------------------------------------| | data | data | data | data | data | data | data | data | data | The reason for that is, that i don't know how much columns have to be displayed until i

gwt cell table dynamic columns - sorting

ぐ巨炮叔叔 提交于 2019-12-02 11:31:29
问题 You can represent your "rows" as List<String> instances, you have to change your parameterization from String to List in your Grid, Column and data provider; and of course you have to call updateRowData with a List<List<String>> , not a List<String> . You also need one Column instance per column, taking the value out of the List by index: class IndexedColumn extends Column<List<String>, String> { private final int index; public IndexedColumn(int index) { super(new EditTextCell()); this.index

How can I get the nested components of a <p:column> in a facelet using EL

我与影子孤独终老i 提交于 2019-12-02 08:26:05
Let's say I have this: <p:column headerText="R" style=" text-align: center;" width="10" rendered="true"> <p:commandLink id="MRepShowButton" update=":form1:display" onclick="EditorDialog.show();" title="Editer le compte rendu"> <f:setPropertyActionListener value="#{exam}" target="#{dyna.selectedExamen}" /> <p:graphicImage id="img1" value="/images/study_Report_icons/Text/0.png" rendered="#{exam.examen.rapport.rapportWrittenState == null}"/> <p:graphicImage id="img2" value="/images/study_Report_icons/Text/#{exam.examen.rapport.rapportWrittenState}.png" rendered="#{exam.examen.rapport

gwt cell table dynamic columns - sorting

老子叫甜甜 提交于 2019-12-02 04:38:19
You can represent your "rows" as List<String> instances, you have to change your parameterization from String to List in your Grid, Column and data provider; and of course you have to call updateRowData with a List<List<String>> , not a List<String> . You also need one Column instance per column, taking the value out of the List by index: class IndexedColumn extends Column<List<String>, String> { private final int index; public IndexedColumn(int index) { super(new EditTextCell()); this.index = index; } @Override public String getValue(List<String> object) { return object.get(this.index); } }

modelling data from rows to columns in Angular dynamically

孤街醉人 提交于 2019-12-01 14:29:04
I have data that looks like this: $scope.items =[{name: "item1", year : "2013", value : "100"}, {name: "item1", year : "2012", value : "97"}, {name: "item1", year : "2011", value : "98" }, {name: "item2", year : "2013", value : "-7" }, {name: "item2", year : "2012", value : "-6" }, {name: "item2", year : "2011", value : "-5" }, {name: "item3", year : "2013", value : "93" }, {name: "item3", year : "2013", value : "91" }, {name: "item3", year : "2012", value : "93" }, {name: "item4", year : "2013", value : "-35" }, {name: "item4", year : "2012", value : "-36" }, {name: "item4", year : "2011",

sql server pivot : group by with dynamic columns

﹥>﹥吖頭↗ 提交于 2019-12-01 12:38:18
I have done a pivot on a table, generating dynamic columns : DECLARE @cols AS NVARCHAR(MAX); DECLARE @query AS NVARCHAR(MAX); select @cols = STUFF((SELECT distinct ',' + QUOTENAME(Replace(variable,char(CAST(0x0016 as int)),'')) val FROM TABLEDATA ORDER BY val asc FOR XML PATH(''), TYPE ).value('.', 'NVARCHAR(MAX)') , 1, 1, ''); SELECT @query = 'SELECT time, country, disease, ' + @cols + ' FROM TABLEDATA PIVOT ( MAX(value) FOR variable IN( ' + @cols + ' )' + ' ) AS p; '; execute(@query); It returns the following result : time | country | disease | indicateur1 | indicateur2 | ... | indicateur14

modelling data from rows to columns in Angular dynamically

送分小仙女□ 提交于 2019-12-01 12:06:58
问题 I have data that looks like this: $scope.items =[{name: "item1", year : "2013", value : "100"}, {name: "item1", year : "2012", value : "97"}, {name: "item1", year : "2011", value : "98" }, {name: "item2", year : "2013", value : "-7" }, {name: "item2", year : "2012", value : "-6" }, {name: "item2", year : "2011", value : "-5" }, {name: "item3", year : "2013", value : "93" }, {name: "item3", year : "2013", value : "91" }, {name: "item3", year : "2012", value : "93" }, {name: "item4", year :