Git Product home page Git Product logo

zf3-bootstrap4's People

Contributors

bartve avatar dependabot-preview[bot] avatar japaveh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

cbichis

zf3-bootstrap4's Issues

FormRow view helper and package docs

I just loooooove your package. Do you have by any chance an analog for FormRow helper? And do you, by any chance, plan to write docs for the use of your helpers because they are much more advanced than the standard of ZF2?

Navigation Menu helper doesnt work correctly

At least for 3 levels menu the output is not correct. See for a demo menu the output:

return [
	[
		'label' => 'Element 1',
		'uri' => '/blabla',
		'pages' => [
			[
				'label' => 'Element 1.1',
				'uri' => '#'
			],
			[
				'label' => 'Element 1.2',
				'uri' => '#'
			],
			[
				'label' => 'Element 1.3',
				'uri' => '#'
			],
			[
				'label' => 'Element 1.4',
				'uri' => '#'
			],
			[
				'label' => 'Element 1.5',
				'uri' => '#'
			],
			[
				'label' => 'Element 1.6',
				'uri' => '#'
			],
		]

	],
	[
		'label' => 'Element 2',
		'uri' => '/blabla',
		'pages' => [
			[
				'label' => 'Element 2.1',
				'uri' => '#',
				'pages' => [
					[
						'label' => 'Element 2.1.1',
						'uri' => '#'
					],
					[
						'label' => 'Element 2.1.2',
						'uri' => '#'
					],
					[
						'label' => 'Element 2.1.3',
						'uri' => '#'
					],
				]
			],
			[
				'label' => 'Element 2.2',
				'uri' => '#',
				'pages' => [
					[
						'label' => 'Element 2.2.1',
						'uri' => '#'
					],
					[
						'label' => 'Element 2.2.2',
						'uri' => '#'
					],
					[
						'label' => 'Element 2.2.3',
						'uri' => '#'
					],
					[
						'label' => 'Element 2.2.4',
						'uri' => '#'
					],
				]
			],
		]
	],
	[
		'label' => "Element 3",
		'uri' => '#'
	],
	[
		'label' => 'Element 4',
		'uri' => '#'
	]

];
<ul class="navbar-nav mr-auto navbarMainLeft">
	<li class="nav-item dropdown">
		<a id="menu-d41d8cd98f00b204e9800998ecf8427e" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" role="button" href=" #" class="dropdown-toggle nav-link">Element 1</a>
		<div class="dropdown-menu" area-labelled-by="menu-d41d8cd98f00b204e9800998ecf8427e">
			<a href=" #" class="dropdown-item">Element 1.1</a>
			<a href=" #" class="dropdown-item">Element 1.2</a>
			<a href=" #" class="dropdown-item">Element 1.3</a>
			<a href=" #" class="dropdown-item">Element 1.4</a>
			<a href=" #" class="dropdown-item">Element 1.5</a>
			<a href=" #" class="dropdown-item">Element 1.6</a>
		</div>
	</li>
	<li class="nav-item dropdown">
		<a id="menu-d41d8cd98f00b204e9800998ecf8427e" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" role="button" href=" #" class="dropdown-toggle nav-link">Element 2</a>
		<div class="dropdown-menu" area-labelled-by="menu-d41d8cd98f00b204e9800998ecf8427e">
			<a href=" #" class="dropdown-item">Element 2.1</a>
			<div class="dropdown-menu" area-labelled-by="menu-d41d8cd98f00b204e9800998ecf8427e">
				<a href=" #" class="dropdown-item">Element 2.1.1</a>
				<a href=" #" class="dropdown-item">Element 2.1.2</a>
				<a href=" #" class="dropdown-item">Element 2.1.3</a>
			</div>
			<a href=" #" class="dropdown-item">Element 2.2</a>
			<div class="dropdown-menu" area-labelled-by="menu-d41d8cd98f00b204e9800998ecf8427e">
				<a href=" #" class="dropdown-item">Element 2.2.1</a>
				<a href=" #" class="dropdown-item">Element 2.2.2</a>
				<a href=" #" class="dropdown-item">Element 2.2.3</a>
				<a href=" #" class="dropdown-item">Element 2.2.4</a>
			</div>
	</li>
	<li class="nav-item">    <a href=" #" class="nav-link">Element 3</a>
	<li class="nav-item">    <a href=" #" class="nav-link">Element 4</a>
	</li>
</ul>

You can see the div for Element 2.1 is not closed

<div class="dropdown-menu" area-labelled-by="menu-d41d8cd98f00b204e9800998ecf8427e">

And also that Element 3 had not a closed li.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.