How do you turn a button in to an icon, in JSFiddle. - jsfiddle

Needing some help for a school project, and trying to figure out how to change the ascetics of my buttons by inserting jepg s or even gif s. Thank you!

You can do it by specifing the inner content of the button or input as being an img tag
so normally <button>Submit</button> will create a button with submit as the text of the button instead you do this
<button id="btn"><img height="40" width="40" src="http://icons.iconarchive.com/icons/martz90/circle/512/google-plus-icon.png"></img></button>

Related

Unable to derive Xpath syntax for radio buttons without any distinguished value inside div tag

I want to click a radio button out of 10 radio buttons on a webpage but each radio button tag is exactly same inside Div/INPUT tag, i.e for each radio button values are exactly same and hence not able to derive a xpath to click on it. Can't use contains text to levarage radio button name as radio button name is in different SPAN tag so can't use that as a reference, Please help me: below is the code :
<div class="classname">
<input name="category.value" type="radio" class="classname">
</input>
<span class="classname">Radio button Name</span>
driver.find_element_by_xpath("//span[#class='classname']/input[#value=1]").click()
Your HTML must have some kind of return type, maybe value or name. I belive you can use that.
Mentioned in the comments can you please try:
//span[text()='Radio button Name']/preceding-sibling::input[1]
Not that this is case sensitive.
This works based on the html provided:
If it doesn't work for you can you please verify your HTML. There are lots of other ways of getting the element. If you need to modify the html just do it and let us know :-)

How to use TableView in Xamarin.Forms?

I am relatively new to the world of Xamarin.Forms and have a question with regard to Xamarin TableView.
I want to create a layout similar to the one shown below.
Question is, can I use TableView for this or is there an another option for this? Can anyone show this with XAML code please?
Thanks in advance.
Edit: Tabs in the bottom are not required.
I don't mean to be rude, but this is very easy to retrieve from the documentation pages and a bit of trying yourself.
To get you started, try this:
<TableView Intent="Settings">
<TableView.Root>
<TableView.Section>
<ImageCell Text="Invoice Customization" Source="Invoice_image.png" />
<ImageCell Text="Invoice Defaults" Source="Invoice_image.png" />
</TableView.Section>
<TableView.Section Title="Security">
<SwitchCell Text="Use Touch ID" />
</TableView.Section>
... etc.
</TableView.Root>
</TableView>
The arrows at the end of the cells and the footer text underneath the Security section are not possible with Xamarin.Forms out of the box, this will probably require you to write a custom renderer.

how to click a web button having only ID using vba

I'm trying to click this button (in the code at the end)
The thing is that, as you can see, i only have the ID, so i can´t use IE.Document.getElementsByName("xxxx").Item or IE.Document.getElementsByTAG("xxx").Item wich are the code i usually use to click a button.
Can anyone help me?
Many thanks in advance
<TD id=copyCell>
<BUTTON id=copy title="Copy grid to clipboard" class=dbnetgrid><IMG
id=copyImg
src="http://mxfrvwwinpro001.mx.corp/tsnet1/images/copy.gif"></IMG>
</BUTTON>
</TD>
Try IE.Document.getElementById("xxx").click.

Mouseover my title in xaml

Hi all i'm new to this xaml code so excuse me if.i ask some stupid question.
I have a title call conference with hyperlink that take you to conference paye and inside that conference page i have link and table in it.. All I want to so is to create à tooltip that will show the link and some info when the mouse is over it
Most elements in XAML have a ToolTip that you can set in XAML. Tool tips are automatically shown when the mouse hovers of the lement. You didn't specify what type of element your title is, but for this example I will use a Label.
To specify a ToolTip, set up your element like this:
<Label>
<Label.ToolTip>
<!-- put the elements you want in the tool tip in here -->
</Label.ToolTip>
</Label>
Hope this helps put you on the right track
<Label Grid.Row="0" Grid.Column="1" Style="{StaticResource LabelRequiredStyle}" Content="{Binding Value}", ToolTip="{Binding Value, RelativeSource={RelativeSource Self}}" >
Set this attribute to the lable and replace 'Value' with the value of content of Label.

Sub-MenuItems seem to align right by default

Every time I use a menu with MenuItems, the sub-MenuItems align right by default. They do so no matter what I put for the HorizontalAlignment property. Even when I type a relatively simple example:
<Grid>
<Menu Height="23" VerticalAlignment="Top">
<MenuItem Header="_File">
<MenuItem Header="_New" />
</MenuItem>
</Menu>
</Grid>
The "New" MenuItem aligns right relative to the "File" MenuItem. For what it's worth, it looks normal in the preview using Visual Studio, just not when I actually run it.
There is space on the left hand side of the text to accompany the IsCheckable checkbox. You can see it in action using the following code:
<MenuItem Header="_New" IsCheckable="True"/>
If you want to remove this spacing, consider using a ControlTemplate to override the default MenuItem template.
I apologize, apparently I didn't search hard enough for other posts with the same problem. This user had the same problem (and did a better job of illustrating it), and the solution posted there worked perfectly. The issue was that since my computer is optimized for touch technology, the default is to align sub-MenuItems so that right-handed users' hands won't get in the way.