I am trying to layout a JavaScript Web Map using dojo components and would like to add splitters to my dojo Content Panes. I have the one between my left pane and center pane working but am unable to get the one between my center pane and footer to appear. The code below is the Content Pane footer I am trying to add a splitter to. I am sure I am missing something simple, does anyone have any advice?
Thanks in advance!!
<div data-dojo-type="dojox.layout.ContentPane" splitter="true" region="bottom" id="footerAll" style="height:60%; width:100%">
<div id="footerDocNum" class="roundedCorners" dojotype="dojox.layout.ContentPane" region="bottom" style="height:90%; width:96%;display:none;">
<table dojotype="dojox.grid.DataGrid" data-dojo-id="grid1" id="grid1" data-dojo-props="rowsPerPage:'5', rowSelector:'20px'">
<thead>
<tr>
<th field='DOCUMENT_N' width='150px'>Document Number</th>
<th field='SURVEYOR' width='150px'>Surveyor</th>
<th field='TOWNSHIP_R' width='150px'>Township/Range</th>
<th field='SECTION' width='100px'>Section</th>
<th fields="page_id" formatter="makeLink3"width="100px" >
PDF
</th>
</thead>
</table>
</div>
<div id="footerCity" class="roundedCorners" dojotype="dijit.layout.ContentPane" region="bottom" style="height:90%; width:96%; display:none">
<table dojotype="dojox.grid.DataGrid" data-dojo-id="grid2" id="grid2" data-dojo-props="rowsPerPage:'5', rowSelector:'20px'">
<thead>
<tr>
<th field="CITY" width="200px" >
City
</th>
<th field="Square_Mil" width="150px" >
Square Miles
</th>
</tr>
</thead>
</table>
</div>
<div id="footerPoints" class="roundedCorners" dojotype="dijit.layout.ContentPane" region="bottom" style="height:90%; width:96%; display:none;">
<table dojotype="dojox.grid.DataGrid" data-dojo-id="grid4" id="grid4" data-dojo-props="rowsPerPage:'5', rowSelector:'20px'">
<td> <tr>
<form name="griddataControl" id="gridDataFormControl" action="resultsControl.cfm" target="_blank" method="post" style="display:none"><input id="gridDataTextControl" name="gridDataTextControl" type="hidden"><input type="hidden"></form>
<button dojoType="dijit.form.Button" value="Export Results" onclick="document.forms['gridDataFormControl'].submit();">Export To Excel</button><b>Monument Results</b></tr></td>
<thead>
<tr>
<th field="POINT_NAME" width="150px" >
Point Name
</th>
<th field="GRID_ADDRE" width="150px" >
Address
</th>
<th field='TOWNSHIP_R' width='150px'>Township/Range</th>
<th field="SECTION" width="100px" >
Section
</th>
<th fields="POINT_NAME,LONGITUDE,LATITUDE" formatter="makeLink1" width="150px" >
Mon. Ref. Sheet
</th>
<th field="MON_NOTES" width="150px" >
Monument Notes
</th>
</tr>
</thead>
</table>
</div>
<div id="footersurvName" class="roundedCorners" dojotype="dijit.layout.ContentPane" region="bottom" style="height:90%; width:96%; display:none;">
<table dojotype="dojox.grid.DataGrid" data-dojo-id="grid5" id="grid5" data-dojo-props="rowsPerPage:'5', rowSelector:'20px'">
<form name="griddata" id="gridDataForm" action="results.cfm" target="_blank" method="post" style="display:none"><input id="gridDataText" name="gridDataText" type="hidden"><input type="hidden"></form>
<tr><button dojoType="dijit.form.Button" value="Export Results" onclick="document.forms['gridDataForm'].submit();">Export To Excel</button><b>Survey Results</b></tr>
<thead>
<tr>
<th field="page_description" width="150px" >
Survey Number
</th>
<th field="SURVEYOR" width="150px" >
Surveyor
</th>
<th field="ADDRESS_OF_SURVEY" width="200px" >
Address
</th>
<th field='TOWNSHIP_RANGE' width='150px'>
Township/Range
</th>
<th field="SECTION" width="100px" >
Section
</th>
<th fields="subdir,page_id" formatter="makeLink" width="75px" >
PDF
</th>
</tr>
</thead>
</table>
</div>
<div id="footerSection" class="roundedCorners" dojotype="dijit.layout.ContentPane" region="bottom" style=" height:90%; width:96%; display:none;">
<table dojotype="dojox.grid.DataGrid" data-dojo-id="grid7" id="grid7" data-dojo-props="rowsPerPage:'5', rowSelector:'20px'">
<thead>
<tr>
<th field='TOWN_RANGE' width='150px'>
Township/Range</th>
<th field="Section_Nu" width="150px" >
Section
</th>
</tr>
</thead>
</table>
</div>
</div>
Related
I have a table with fields having images and links. But it gives code instead of rendering it.
<table id="table"
data-toggle="table"
data-search="true"
data-filter-control="true"
data-show-export="true"
data-show-refresh="true"
data-show-toggle="true"
data-pagination="true"
data-toolbar="#toolbar"
class="table-responsive">
<thead>
<tr>
<th data-field="state" data-checkbox="true"></th>
<th data-field="prenom" data-filter-control="input" data-sortable="true">Title</th>
<th data-field="date" data-filter-control="select" data-sortable="true">Price</th>
<th data-field="examen" data-filter-control="select" data-sortable="true">Image</th>
<th data-field="note" data-sortable="true">Link</th>
</tr>
</thead>
<tbody>
<tr>
<td class="bs-checkbox "><input data-index="0" name="btSelectItem" type="checkbox"></td>
<td>Maths Tution</td>
<td>$20</td>
<td><img src="https://i.imgur.com/0GoaYKd.jpg" height="100" width="100"></td>
<td>Go</td>
</tr>
<tr>
<td class="bs-checkbox "><input data-index="1" name="btSelectItem" type="checkbox"></td>
<td>Milk</td>
<td>$5</td>
<td><img src="https://i.imgur.com/2ZOroMI.jpg" height="100" width="100"></td>
<td>Go</td>
</tr>
</tbody>
</table>
</div>
Here is the link to the website, https://www.monsoonmalabar.com/aggregate_search
How to render the html here?
Bootstrap Table escapes HTML tags. Add data-escape="false" in your table tag.
https://bootstrap-table.com/docs/api/table-options/#escape
<!DOCTYPE html>
<html>
<head>
<style>
table,
th,
td {
border: 1px solid black;
}
</style>
</head>
<body>
<h2>Bordered HTML Table</h2>
<p>Use the CSS border property to add a border to the table.</p>
<table
id="table"
data-toggle="table"
data-search="true"
data-escape="false"
data-filter-control="true"
data-show-export="true"
data-show-refresh="true"
data-show-toggle="true"
data-pagination="true"
data-toolbar="#toolbar"
class="table-responsive"
style="width: 100%;"
>
<thead>
<tr>
<th data-field="state" data-checkbox="true"></th>
<th
data-field="prenom"
data-filter-control="input"
data-sortable="true"
>
Title
</th>
<th
data-field="date"
data-filter-control="select"
data-sortable="true"
>
Price
</th>
<th
data-field="examen"
data-filter-control="select"
data-sortable="true"
>
Image
</th>
<th data-field="note" data-sortable="true">Link</th>
</tr>
</thead>
<tbody>
<tr>
<td class="bs-checkbox">
<input data-index="0" name="btSelectItem" type="checkbox" />
</td>
<td>Maths Tution</td>
<td>$20</td>
<td>
<img
src="https://i.imgur.com/0GoaYKd.jpg"
height="100"
width="100"
/>
</td>
<td>
<a href="https://monsoonmalabar.com/sonyshop/other/product-13/"
>Go</a
>
</td>
</tr>
<tr>
<td class="bs-checkbox">
<input data-index="1" name="btSelectItem" type="checkbox" />
</td>
<td>Milk</td>
<td>$5</td>
<td>
<img
src="https://i.imgur.com/2ZOroMI.jpg"
height="100"
width="100"
/>
</td>
<td>
<a
href="https://monsoonmalabar.com/sonyshop/test_category_2/product-6/"
>Go</a
>
</td>
</tr>
</tbody>
</table>
</body>
</html>
I want to insert a full width row as shown in the below image by Arrow
I have tried colspan, rowspan but did not work for me so removed from question (otherwise question will mess up).
here is what i have tried: https://jsfiddle.net/eabangalore/y3Lt470z/16/
table td {
padding: 5px;
}
<table width="500px" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th style="width:3%"></th>
<th style="width:10%">Name</th>
<th style="width:10%">Age</th>
<th style="width:10%">Designation</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div style="width:50px;height:70px;border-radius:50%;">
<img style="width:100%;height:100%;" src="https://via.placeholder.com/150"/>
</div>
</td>
<td align="center">Alpha</td>
<td align="center">21 year</td>
<td align="center">Software</td>
</tr>
<tr>
<td>
<div style="width:50px;height:70px;border-radius:50%;">
<img style="width:100%;height:100%;" src="https://via.placeholder.com/150"/>
</div>
</td>
<td align="center">Alpha</td>
<td align="center">21 year</td>
<td align="center">Software</td>
</tr>
</tbody>
</table>
Qusetion: i want to add a full-width row as shown by arrow in red color area (above image)
Note: i cannot change table into divs as i'm working on maintenance project.
You looking for this table structure. You have to use once rowspan and once colspan.
<table width="500px" border="1" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th style="width:3%"></th>
<th style="width:10%">Name</th>
<th style="width:10%">Age</th>
<th style="width:10%">Designation</th>
</tr>
</thead>
<tr>
<th class="" rowspan="2">
<img style="width:100%;height:100%;" src="https://via.placeholder.com/150"/>
</th>
<th class="">1</th>
<th class="">2</th>
<th class="">3</th>
</tr>
<tr>
<td class="" colspan="4">new row</td>
</tr>
<tr>
<th class="" rowspan="2">
<img style="width:100%;height:100%;" src="https://via.placeholder.com/150"/>
</th>
<th class="">a</th>
<th class="">b</th>
<th class="">c</th>
</tr>
<tr>
<td class="" colspan="4">new row</td>
</tr>
</table>
Small Note: use instead inline style classes.
I am making a table in Angular 2. I have 4 columns, but after the last column unwanted white space to the right. I am using bootstrap as well.
The below given is the HTML class
<div class="panel panel-default">
<div class="panel-heading">User information</div>
<div class = 'data-table'>
<table style="width:60px" class="text-center" header-class="'text-center'" class="table table-bordered" [mfData]="data" #mf="mfDataTable" [mfRowsOnPage]="10">
<thead>
<tr>
<th style="width: 10%"></th>
<th style="width: 10%">
<mfDefaultSorter by="name">Name</mfDefaultSorter>
</th>
<th style="width: 10%">
<mfDefaultSorter by="email">Email</mfDefaultSorter>
</th>
<th style="width: 10%">
<mfDefaultSorter by="age">Age</mfDefaultSorter>
</th>
<th style="width: 10%">
<mfDefaultSorter by="city">City</mfDefaultSorter>
</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of mf.data">
<td>
<button class="btn btn-danger" title="remove">
<span class="glyphicon glyphicon-remove"></span>
</button>
</td>
<td>"AJ"</td>
<td>"AJ"</td>
<td class="text-right">"AJ"</td>
<td>"AJ"</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">
<mfBootstrapPaginator [rowsOnPageSet]="[5,10,15]"></mfBootstrapPaginator>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
Please see the screenshot of the page:
As denoted in the screenshot, I have marked in yellow the white space to the right and a small column like space at the bottom. how to remove those to get a proper table?
You are using 60px width and 10% on each <th> try to change this to 100% width and 20% on each cell.
<div class="panel panel-default">
<div class="panel-heading">User information</div>
<div class = 'data-table'>
<table style="width:100%" class="text-center" header-class="'text-center'" class="table table-bordered" [mfData]="data" #mf="mfDataTable" [mfRowsOnPage]="10">
<thead>
<tr>
<th style="width: 20%"></th>
<th style="width: 20%">
<mfDefaultSorter by="name">Name</mfDefaultSorter>
</th>
<th style="width: 20%">
<mfDefaultSorter by="email">Email</mfDefaultSorter>
</th>
<th style="width: 20%">
<mfDefaultSorter by="age">Age</mfDefaultSorter>
</th>
<th style="width: 20%">
<mfDefaultSorter by="city">City</mfDefaultSorter>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="3">
<mfBootstrapPaginator [rowsOnPageSet]="[5,10,15]"></mfBootstrapPaginator>
</td>
</tr>
</tfoot>
<tbody>
<tr *ngFor="let item of mf.data">
<td>
<button class="btn btn-danger" title="remove">
<span class="glyphicon glyphicon-remove"></span>
</button>
</td>
<td>"AJ"</td>
<td>"AJ"</td>
<td class="text-right">"AJ"</td>
<td>"AJ"</td>
</tr>
</tbody>
</table>
</div>
</div>
My tables stack on top of each other fine unless they get 100 or so rows, in which case they align side by side on IE 10. I need them to always stack. They're fine or Firefox and on some installations of IE 10. How to I make them always stack regardless of the browser?
<html>
<head>
<title>Test Project 1</title>
</head>
<body>
<h2 style="text-align: center;">
Test Project 1</h2>
<h3 style="text-align: center;">
2013-06-09 10:08</h3>
<table float="left" clear="left" align="left" border="0" cellpadding="1" cellspacing="1" width="728" style="font-family:arial,helvetica,sans-serif;font-size: 12px;">
<tbody>
<tr>
<th scope="col">
RFI
<hr />
</th>
<th scope="col">
Description
<hr />
</th>
<th scope="col">
Rec'd
<hr />
</th>
<th scope="col">
Due
<hr />
</th>
<th scope="col">
Issued
<hr />
</th>
<th scope="col">
Age
<hr />
</th>
</tr>
</tbody>
</table>
<p>
</p>
<table float="left" clear="left" align="left" border="0" cellpadding="1" cellspacing="1" width="728" style="font-family:arial,helvetica,sans-serif;font-size: 12px;">
<tbody>
<tr>
<th scope="col">
CCO
<hr />
</th>
<th scope="col">
Description
<hr />
</th>
<th scope="col">
Rec'd
<hr />
</th>
<th scope="col">
Due
<hr />
</th>
<th scope="col">
Issued
<hr />
</th>
<th scope="col">
Age
<hr />
</th>
</tr>
</tbody>
</table>
</body>
</html>
Instead of that empty paragraph beween the tables you could try adding
<br style="clear:both"/>
As you are using float property. You need to break next element to new line ,use:
table {clear: both;}
or put a <br/> tag between tables.
Just remove the float="left" clear="left" attributes on the table tags and you will be fine. float and clear are not even valid properties of tables.
Add both the tables in a table
like
<Table id="main">
<tr>
<td>
<Table id=1> </table>
</td>
<td>
<Table id=2> </table>
</td>
</tr>
</table>
i have grid with some columns... i want to hide one column in that grid... how to do that...
here is my grid.... in this i need to hide CWDocId header from grid...
<div class="claro" id="CWPWORKLIST__2" name="dataGrid" onclick="setWidgetproperty(this.id,'xy','inner__CWPWORKLIST__2')" ondblclick="editDataGridResponseMapping(this.id)" onmouseup="setDocStyle(this.id)" style="height:250px; left:auto; position:absolute; top:333px; width:920px;">
<table class="claro" dojotype="dojox.grid.DataGrid" id="inner__CWPWORKLIST__2" rowselector="10px">
<thead>
<tr>
<th field="CWDocId" width="100px" style="display:none;">
CWDocId
</th>
<th field="Due" width="100px">
Due
</th>
<th field="Participant" width="100px">
Participant
</th>
<th field="User" width="100px">
User
</th>
<th field="Task" width="100px">
Task
</th>
<th field="Details" width="100px">
Details
</th>
<th field="Created" width="100px">
Created
</th>
<th field="Assigned" width="100px">
Assigned
</th>
<th field="Started" width="100px">
Started
</th>
</tr>
</thead>
</table>
<input id="hidden__CWPWORKLIST__2" name="orcl1.cw" style="display:none;" type="hidden" value="CWDocId##CWDOCID,Due##DUE_DATE,Participant##PARTICIPANT_TYPE,User##USER_ID,Task##OPERATION,Details##ORDER_VK,Created##CREATION_DATE,Assigned##ASSIGN_TO_USER_DATE,Started##START_WORK_DATE">
</div>
Have you thought of giving a column an ID and by using dojo.style method or CSS to set its visibility?