semantic-ui

How to align my label and input field

风格不统一 提交于 2019-12-05 19:31:20
I want my input field "title" to render directly below the radio buttons, but now it is too far to the left. I need the extra div because it is a dynamic form, but I want the grid view. How can I accomplish that? <!DOCTYPE html> <html> <head> <link href= "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.2/semantic.min.css" rel="stylesheet" type="text/css"> <style> textarea { height: 600px !important width: 500 px !important } .inline {display: inline-block;} </style> <title></title> </head> <body> <form accept-charset="UTF-8" action= "http://127.0.0.1:8080/_ah/upload/ahFkZXZ

Semantic-UI: How to use custom icons in multiple dropdown remote search?

和自甴很熟 提交于 2019-12-05 18:02:47
I'm trying to create a searchable multiple dropdown with custom icons that fetches its data from a remote source. Basically, a mix between this , this and this . Take this fiddle for example: What I want to is a way to modify the dropdown items (not the labels when they are selected, but the actual items in the dropdown list). SUI provides onAdd and onLabelCreate callbacks but those are only useful when an item has already been selected. Is there a callback that allows me to modify the generated menu items? $('#sourcesSearch').dropdown({ saveRemoteData: false, apiSettings: { url: '//beta.json

Semantic Ui Dropdown on hover

*爱你&永不变心* 提交于 2019-12-05 13:28:50
I want my semantic ui dropdown menu to trigger on hover instead of click, it works on click, but not hover. Javascript: $('.ui.dropdown').dropdown({on:'hover'}); HTML: <div class="ui dropdown item"> <i class="fa fa-users"></i> Members <i class="fa fa-caret-down"></i> <div class="menu"> <a class="item"><i class="fa fa-users"></i> Players</a> <a class="item"><i class="fa fa-user-md"></i> Staff</a> </div> </div> If you want hover effect to open dropdown menu then you don't need to use javascript, instead you can add class simple to your parent div : <div class="ui simple dropdown item"> <i class=

Using the tab control in semantic-ui

烂漫一生 提交于 2019-12-05 12:49:06
I am trying to build a website using semantic-ui . I like a lot of what I see. However, I'm trying to just create a tab control. In an attempt to do this, I thought I grabbed the code found on the overview page. However, as my jsfiddle shows , the tab behavior is not working properly. Here's a sample of my tab code: <div class="row"> <div class="ui active tab segment" data-tab="first">First</div> <div class="ui tab segment" data-tab="second">Second</div> <div class="ui tab segment" data-tab="third">Third</div> <div class="ui pointing secondary demo menu"> <a class="active red item" data-tab=

Semantic-UI: Why is the Body not the same viewport size?

好久不见. 提交于 2019-12-05 09:39:29
Please take a look at my Hello World-esque application , built with Semantic-UI. I frequently use Semantic-UI, I like it more than Bootstrap, but I have noticed this consistent issue at the edges. The viewport has some sort of excess margin, notice the bottom of the webpage (blank space), and the right of the web page (more blank space). I've been experimenting with setting the width/height of html/body to 100% , to no avail. Is this a Semantic-UI issue, or something else in general? Any suggestions to correct this CSS? It is because of the ui grid property which pulls content outside its area

Semantic UI sidebar throws console errors with ReactJS when render app to body

核能气质少年 提交于 2019-12-05 08:21:57
Any way to render Semantic-UI sidebar into a React App without using id tags in HTML body? I want to avoid having to render React components to tagis within the HTML body like NOT using: <div id="some-name"></div> . I'm using Meteor but shouldn't make a difference for this issue appears React & Semantic UI specific. The code below gives the following errors in browser console: Sidebar: Had to add pusher element. For optimal performance make sure body content is inside a pusherSidebar: Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag

semantic ui react Setting dropdown value to state

蓝咒 提交于 2019-12-05 03:55:10
how to have dropdowns selected value in state.here is my code iam getting value for name field but dropdown not working, can anyone find out what i am missing? MyComponent.js import React,{Component} from 'react'; class MyComponent extends Component{ state={ data:{ name:'', subject:'' } } onChange = e => this.setState({ data: { ...this.state.data, [e.target.name]: e.target.value } },()=>{ console.log(this.state.data); } ) render(){ const {data}=this.state; const subjects= [ {text: '1',value: 'kannada'}, {text: '2', value: 'english'}, {text: '3',value: 'hindhi'} ] return( <div> <Input name=

Use Semantic-UI (or Font Awesome) icons as markers in OpenLayers3

纵饮孤独 提交于 2019-12-05 03:42:31
Is there a way to use icons from Semantic UI or FontAwseome as markers icons in OpenLayers3 ? OpenLayers features the feature style Text that can be used as follows: var blackFill = new ol.style.Fill({color: 'black'}) var whiteStroke = new ol.style.Stroke({color: 'white', width: 1}) var iconText = new ol.style.Text({font: "<my font>", text: "<some string>", fill: blackFill, stroke: whiteStroke }) var featureStyle = new ol.style.Style({ text: iconText }); After checking the style of Semantic UI elements, I discovered it is using "Icons" as font-family and escaped characters to choose the symbol

React + Semantic-UI: Using Forms inside UI MODAL

吃可爱长大的小学妹 提交于 2019-12-05 03:09:00
In the plain old Semantic-UI WITHOUT React, I have been able to put a form inside a Modal without a problem at all. With the Semantic-UI + React version, I am able to display the form inside the modal, but it doesn't work the way I would expect it to. For example, after the modal shows and the form inside the modal also is displayed. If I start inputting in the input field, I would get this error displayed: Error: Invariant Violation: findComponentRoot(..., .1.1.1.0.4.0.0.1): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to

Semantic-UI-React, selection, multi, can't set defaultValue

二次信任 提交于 2019-12-05 01:10:06
问题 I have React component: <Dropdown placeholder={field[propName].label} id={propName} fluid multiple selection search defaultValue={defaultOptions} options={options} /> So options and defaultOptions is the same structure arrays {text: 'string, value: 'string'} . In semantic UI source code I found this: /** Initial value or value array if multiple. */ defaultValue: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([ PropTypes.string, PropTypes.number