@legtech/formatprint
v2.0.0
Published
Functions to help format inputs to print as labels
Downloads
9
Keywords
Readme
Functions to help format inputs to print as labels. Works with Bootstrap.
When the form is printed, the input elements are hidden and the labels are shown.
To use, include the "printAsLabel" class on the inputs you want to be shown as a label. For example:
@Html.TextBoxFor(b => b.Property, new { @class = "form-control mr-2 d-print-none printAsLabel" })
@Html.RadioButtonFor(model => model.IsBill, true, new { Checked = "checked", @class = "d-print-none printAsLabel" }) Bill
Buttons can be tagged as print buttons using the "printWindow" class
<button type="button" class="btn btn-primary printWindow">
Print
</button>