Reference - Select options - htmlAttrJson


App: classicModels - Page: options
PHP
HTML
options.pad
Result
<p>where: {offices where="country = 'USA'", order='officeCode'}{$officeCode},{/offices}</p>
<p>distinct: {offices distinct, fields='country', order='country'}{$country},{/offices}</p>
<p>distinctrow: {offices distinctrow, fields='country', order='country'}{$country},{/offices}</p>
<p>group: {payments fields='customerNumber, count(*) as cnt', group='customerNumber', having='cnt > 9', order='customerNumber'}{$customerNumber}={$cnt},{/payments}</p>
<p>rollup: {offices key='', fields='count(*) as cnt', group='country', rollup}{last@offices}{$cnt}{/last@offices}{/offices}</p>
<p>db: {sales db='employees', where="jobTitle = 'President'"}{$lastName}{/sales}</p>
<p>key: {offices key='city', where="country = 'USA'"}{$city},{/offices}</p>
<p>union: {offices where="officeCode = 1", union='offices'}{$officeCode},{/offices}</p>
<p>join: {employees join='offices on employees.officeCode = offices.officeCode', where="offices.city = 'Boston'", order='lastName'}{$lastName},{/employees}</p>
<p>htmlAttrJson: {select:offices htmlAttrJson='record', fields='officeCode', where="officeCode = 1"}</p>


App: regression/errors - Page: syntax/a_select_output_mode_is_a_known_shape
PHP
syntax/a_select_output_mode_is_a_known_shape.php
HTML
syntax/a_select_output_mode_is_a_known_shape.pad
Result
<?php

$padSelect
['staffSel'] = [ 'db' => 'staff' ];

?>
{staffSel htmlAttrJson='drop table staff;'}


App: regression/pages - Page: select/support/json
PHP
select/support/json.php
HTML
select/support/json.pad
Result
<?php

// The lenient walk under test: what nothing claims stays in the output as written.

$padCheckSyntax = FALSE;

?>
if react needs 2 data objects, is it enough dat only the id is different and that the attribute is always the same, like below:

<div id="id1" data="html_encoded_json"></div>
<div id="id2" data="html_encoded_json"></div>

<div id="id2" data="{forum_topics $id=1, htmlAttrJson='record'}"></div>
<div id="id2" data="{forum_topics $id=1, htmlAttrJson='record'}"></div>

{react id='', query='name in _recact library', $parm1=<expression>, $parm2=<expression>}

you are in a Linux container on a chromebook, what for you localhost is is for me penguin.linux.test, so above link should be http://penguin.linux.test/support/?forum/topic&id=1