Skip to content

Commit

Permalink
Merge branch 'master' of github.com:neilime/twbs-helper-module
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilien Escalle committed Aug 6, 2020
2 parents 7857d7d + 5cbad95 commit a7a72b0
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 20 deletions.
38 changes: 23 additions & 15 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: weekly
day: friday
time: "04:00"
open-pull-requests-limit: 10
versioning-strategy: increase
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
day: friday
time: "04:00"
open-pull-requests-limit: 10
- package-ecosystem: composer
directory: "/"
schedule:
interval: weekly
day: friday
time: "04:00"
open-pull-requests-limit: 10
versioning-strategy: increase
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
day: friday
time: "04:00"
open-pull-requests-limit: 10
- package-ecosystem: npm
directory: "/website"
schedule:
interval: weekly
day: friday
time: "04:00"
open-pull-requests-limit: 10
versioning-strategy: increase
63 changes: 63 additions & 0 deletions website/docs/rendering/forms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3320,3 +3320,66 @@ echo $this->formRow($oFactory->create([
</TabItem>
</Tabs>

## Button groups
<Tabs
defaultValue="result"
values={[
{label: 'Result', value: 'result'},
{label: 'Source', value: 'source'},
]}>
<TabItem value="result">{ ReactHtmlParser(`<form action="" method="POST" name="form" role="form" id="form">
<div class="form-group">
<label for="email">Email</label>
<input name="email" type="email" class="form-control" value=""/>
</div>
<div class="btn-group&#x20;form-group">
<button type="button" name="button1" class="btn&#x20;btn-secondary" value="">Button 1</button>
<button type="button" name="button2" class="btn&#x20;btn-secondary" value="">Button 2</button>
</div>
<div class="form-group">
<button type="submit" name="submit" class="btn&#x20;btn-primary" value="">Submit</button>
</div>
</form>`) }</TabItem>
<TabItem value="source">

```php
$oFactory = new \Laminas\Form\Factory();

echo $this->form($oFactory->create([
'type' => 'form',
'elements' => [
[
'spec' => [
'name' => 'email',
'options' => ['label' => 'Email'],
'attributes' => ['type' => 'email'],
]
],
[
'spec' => [
'type' => \Laminas\Form\Element\Button::class,
'name' => 'button1',
'options' => ['label' => 'Button 1', 'row_name' => 'my-button-group']
]
],
[
'spec' => [
'type' => \Laminas\Form\Element\Button::class,
'name' => 'button2',
'options' => ['label' => 'Button 2', 'row_name' => 'my-button-group']
]
],

[
'spec' => [
'type' => 'submit',
'options' => ['label' => 'Submit', 'variant' => 'primary'],
]
],
],
]));
```

</TabItem>
</Tabs>

10 changes: 5 additions & 5 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ module.exports = {
organizationName: "neilime",
projectName: "twbs-helper-module",
themeConfig: {
algolia: {
apiKey: "YOUR_API_KEY",
indexName: "YOUR_INDEX_NAME",
searchParameters: {}, // Optional (if provided by Algolia)
},
// algolia: {
// apiKey: "YOUR_API_KEY",
// indexName: "YOUR_INDEX_NAME",
// searchParameters: {}, // Optional (if provided by Algolia)
// },
navbar: {
title: "TwbsHelper",
logo: {
Expand Down

0 comments on commit a7a72b0

Please sign in to comment.