[Mapbender_dev] Re: [Mapbender] #878: PrintPDF with Template:
Define max characters for input fields + add line breaks in PDF
Mapbender
mapbender_dev at lists.osgeo.org
Wed Apr 4 08:07:46 EDT 2012
#878: PrintPDF with Template: Define max characters for input fields + add line
breaks in PDF
----------------------------+-----------------------------------------------
Reporter: verenadiewald | Owner: dev
Type: enhancement | Status: closed
Priority: minor | Milestone: 2.7.3 release
Component: print | Version: 2.7.2
Resolution: fixed | Keywords:
----------------------------+-----------------------------------------------
Changes (by verenadiewald):
* status: new => closed
* resolution: => fixed
Comment:
* 2.7: http://trac.osgeo.org/mapbender/changeset/8301
* trunk: http://trac.osgeo.org/mapbender/changeset/8302
* to configure the clientside maxLength param for input fields in html,
add the maxCharacter attribute to the controls-section of the specified
element in the config json
{{{
{
"id" : "comment1",
"label" : "Kommentar 1 (40 Zeichen)",
"maxCharacter" : 40,
"type" : "textarea",
"size" : 5,
"pageElementsLink" : {
"kommentar1" : "value"
}
}
}}}
* line breaks in class mbParagraphDecorator will be added if the defined
width in the width attribute in the pages->elements section of the
specified element in the config json is reached for the pdf cell
{{{
"kommentar1" : {
"type" : "para",
"x_ul" : 39,
"y_ul" : 269.8,
"font_family" : "Arial",
"font_size" : 12,
"width" : 100,
"height" : 5,
"align" : "L",
"border" : 0,
"fill" : 1,
"border_width" : 0.5
}
}}}
--
Ticket URL: <http://trac.osgeo.org/mapbender/ticket/878#comment:1>
Mapbender <http://www.mapbender.org/>
Mapbender
More information about the Mapbender_dev
mailing list