2.0.0 • Published 2 years ago

@legtech/formatprint v2.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
2 years ago

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>
1.0.2

2 years ago

2.0.0

2 years ago

1.0.1

5 years ago

1.0.0

5 years ago