score:1
Accepted answer
the <textarea>
is likely controlled via the library's css so even if you set rows
and cols
, the css dictates styling. if so, you'll have to either edit the library's css, override it with your own css, or give it an inline style
.
myswal.fire({
// other settings...
html:
'...other html' +
'<textarea style="height: 200px; width: 400px"></textarea>'
});
Source: stackoverflow.com
Related Query
- Changing size of a textbox in html string in React
- Render HTML string as real HTML in a React component
- How to query by text string which contains html tags using React Testing Library?
- Figuring out how to mock the window size changing for a react component test
- Making an HTML string from a React component in background, how to use the string by dangerouslySetInnerHTML in another React component
- How to parse a String containing HTML to React Components
- dynamic HTML String to react component
- Render HTML from a json string in react
- Insert HTML into user string and render it in React (and avoid XSS threat)
- Render HTML string in isomorphic React app
- Inserting html inside string variable used in React component
- Getting line breaks with string literals in html elements using React
- How to changing layout based on screen size with react
- React js render html string returned from server
- React not turning HTML string from JSON into text
- How to let string coming with HTML tags to be rendered in React js?
- Rendering REACT component as string of HTML to copy or add to textarea
- React render string as HTML in ant design
- Add read more button to string html react
- React render pasted html as tags, not string
- How render a string as HTML in React
- onChange the textbox value is not updating in HTML form using React
- Can I create a React Element from an HTML string or dom node/element
- Insert React component into a String variable with html content
- get html saved as string from db and use it as react html in react js
- getting a string instead of html returned from function in React
- Best way for a React and HTML Select-component to return String instead of Integer
- React - How to return and string of HTML
- How to render a react component from html string in ReactJS while setting in dangerouslysetinnerHtml?
- React Router - Why is the switch not changing html when the path changes?
More Query from same tag
- Unable to pass props
- React redux doesn't return current state value
- How to use Tab instead of Enter in Downshift to select current menu item?
- React enzyme testing library
- How to use apollo-client API directly to query with fetchPolicy='cache-and-network'?
- Handling 404 Error Response with Async/Await
- Components appearing on top of my Sidebar in React
- Get number from the input text and then increment when the button is clicked ReactJS
- Force update `this.props.location.search` on React Router
- remove value from form within component
- Break out of ReactRouter when there is no match
- Using this.setState in a callback
- React Google Maps - Marker positions are not binding dynamically
- How to make a specific button disappear permanently on React.js?
- in reactjs componentWillMount(), how to get which component?
- Filter API by its Key
- React - Ant Design Form-Item name props broke Select value
- HowlerJS in React
- on ReactJS, can't handle a navigation to a div in page from the navigation bar
- Includes() function alternative React
- how to render a object in reactjs?
- ReactJS difference between setting state directly and through method argument
- using react-intl to translate a message key outside a component
- Why ajax request should be done in componentDidMount in React components?
- Can function parameter use an array method?
- React, Enzyme async lifecycle function
- npm start not working | Not Loading React Application
- Image source not finding the image
- React, Redux and Typescript- how to get this working
- Material UI Grid set horizontal line instead of responsiveness