Giter VIP home page Giter VIP logo

iconpicker's Introduction

Iconpicker-AddOn für REDAXO 5

Für Font Awesome-Icons, auch andere Font-Icons möglich

screenshot_iconpicker

Funktion

Das Iconpicker-AddOn verwendet folgendes Skript: http://mjolnic.com/fontawesome-iconpicker/

Eventuelle Anpassungen beim Aufruf des Iconpickers können am besten in die Datei assets/iconpicker.js geschrieben werden.

Benutzung

Um den Iconpicker für ein Textfeld zu aktivieren, diesem die CSS-Klasse "icp" zuweisen.

<input class="form-control icp" type="text" name="REX_INPUT_VALUE[1]" value="REX_VALUE[1]">

Hinweis

Damit das Popup nicht abgeschnitten wird, muss der Container form-group die CSS-Eigenschaft overflow: visible haben. Die Position des Popups kann über data-placement bestimmt werden.

Der vollständige Beispiel-Code für ein Modul könnte also so aussehen:

<div class="form-group" style="overflow: visible;">
	<label class="col-sm-2 control-label">Icon</label>
	<div class="col-sm-10">
		<input data-placement="bottomRight" class="form-control icp" type="text" name="REX_INPUT_VALUE[1]" value="REX_VALUE[1]">
	</div>
</div>

Filtern direkt im Input-Feld

Um die Icons direkt im Input-Feld zu filtern, wird data-input-search="true" gesetzt:

<input data-input-search="true" class="form-control icp" type="text" name="REX_INPUT_VALUE[1]" value="REX_VALUE[1]">

Darstellung als "Input Group"

Auch die in Bootstrap bekannte Komponente einer "Input group" ist möglich:

<div class="input-group">
	<input data-placement="bottomRight" class="form-control icp" type="text" name="REX_INPUT_VALUE[1]" value="REX_VALUE[1]">
	<span class="input-group-addon"></span>
</div>

Danke an @tbaddade für Inspiration.

iconpicker's People

Contributors

polarpixel avatar schuer avatar

Watchers

 avatar

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.