Is there a way to make the OK button of Modal invisible? - antd

Is there a way to make the OK button of Modal invisible?
by using okButtonProps I mean, without the need to use modal.info or customizing a footer.

yes , you can do it from remove onOk pros like this .
<Modal
visible={visible}
title="Title"
//onOk={this.handleOk}
//onCancel={this.handleCancel}
footer={null}
>
here is the codesandboxlink for the same .
Link
https://codesandbox.io/s/elated-haibt-zl2ss?file=/index.js:760-927
hope this'll help you !!

Related

Extjs 6 Ext.grid.plugin.RowEditing Remove Update / Cancel buttons

I am trying to remove update cancel buttons.
but no any config's are available for this.
I have tried to override but i cant remove this.
please if you have done task like this or know how to do this help me.
You're absolutely right that there is no built-in way to hide the update and cancel buttons with the row editing plugin.
You could try to hide the button bar via CSS. The normal CSS class name is x-grid-row-editor-buttons. But this may cause other problems.
Or, you could try a different editor, such as the CellEditing plugin - this lets you edit one cell at a time, as opposed to showing the editors for the entire row, and doesn't use buttons.
You might be able to remove the button by overriding the Ext.grid.plugin.RowEditing. A quick look at the source shows me an array with in the initEditiorFunction() which looks like this.
btns = ['saveBtnText', 'cancelBtnText', 'errorsText', 'dirtyText'],
Try removing the cancelBtnText button, and perhaps it won't show on there? I haven't tested this but this might be something in the right direction.

jquerymobile button's css not applied

I'm trying to add a delete button to a custom div. However when the page is loaded, the jquery mobile button does not take the format of jquery and displays it like a hyperlink.
var currDelButton = $("<a>").attr("href","#").attr("data-role","button").attr("data-icon","delete").attr("data-iconpos","left").text("حذف");
anyone has an idea about this issue?
Best Regards
Ali
If you are adding the button after the page is loaded then you need to refresh the element for example $("#mybutton").button(); should work.
here is a working example with the code you provided: http://jsfiddle.net/ashanova/RQVd8/1/
call the .page for the main wrapper where new buttons are added.
$("#content").page();

localScroll next prev button

iam creating an fullscreen scroller, with localScroll/scrollTo.
now i need help with next- prev buttons . and maybe keyboard buttons.
any one can help me.
code at http://www.hell-yeah.se/localscroll
the anchor codes is p1,p2,p3,p4,p5,p6 and so on so maybe its posible to make something with that.
/ Erik

How to implement radio button in iPhone?

I want to add buttons like radio button. i have created round rect button but no idea about radio button.
How can I do it? This how I implement checkbox button feature.
any help please ?
The best way of achieving this is setting a normal and a selected image for each button. You can then easily switch each button on or off using the selected property:
myButton.selected = YES;
There is no direct UI for radio button you have to use images on UIbutton so that you can replace the checked images when a user press on the button just like tableview check/ uncehck functionality .It is just a trick by which you can make feel of a radio button.
I've written a controller for handling the logic behind an array of radio buttons. It's open source and on GitHub, check it out!
https://github.com/goosoftware/GSRadioButtonSetController
Check out DLRadioButton! It supports not only radio buttons but also checkboxes. If you have any questions, please feel free to leave a comment.

setfocus on the msg display

ok the thing is that when i click delete on the view list page i want to set focus on the acknowledgment displayed there . delete is a ajax link . how would i do that?
Set focus on on ASP.NET MVC model errors
This will help you..

Resources