How to change name in sidebar React-Admin - react-admin

Is it possible to change the name in the sidebar ?
I need to translate it for my non-developers co-workers
I tried to add a "label" on the ResourceGuesser but no result.
Thank you

As the community on React-Admin is really small, it is hard to find answers.
I found a solution, I share it in case it helps :
On Resource set options={{ label: 'YourLabel' }}

Related

Does anyone know of a way to customize or remove the Callout for the Fluent UI SearchBox?

I'm working on an autocomplete for the React Search Box but because it doesn't have an open interface, the Callout will popup if you have done a previous search. I want to either turn it off or customize it so I don't have to use a separate component.
Thanks in advance.
I know it's a little late but I found setting autoComplete attribute on the SearchBox to "off" works.

How do you tell a react-select <Select> which options are selected initially on page load?

Seems like this should be a pretty common scenario, yet I didn't see any obvious explanation on react-select.com
<Select
options={options}
isMulti
onChange={(e) => changeHandler(e, props.serviceOrderId)}
/>
I was hoping there would be a way to pass an array of values that should be selected?
I'm looking through the site and it's all greek to me, if someone could dumb it down for me that'd be great.

Is it possible to add icon to the TextInput placeholder at React Native?

I have this simple text input with placeholder:
I need to add search icon before placeholder text.
I need add it exactly in placeholder.
If it possible, please help me with it.
Thank you.
Search bar
i think you can use library for that, i use native-base library, there are already icon textbox, you can modify for placeholder too, this is the reference :
https://github.com/halilb/react-native-textinput-effects
please tell me if you want an example, maybe can help you, thanks :)

Add custom solution to shopify customize panel?

Client asked me to make hover effect on Add To Cart button but only for Single product, i have managed to do that via css, but now he instructed me that he want that solution implemented inside his Customize Panel so that he can change the color of that product himself.
Any help would be appreciated here, since i don't even know where to start, or how that is supposed to look.
For start i would like to know weather this is possible or not?
What you are looking for is information on "Theme Settings". Shopify sometimes refers to this as the Storefront Editor
A tutorial is here: http://www.tetchi.ca/shopify-theme-from-scratch-part-14/
You're going to have to understand some of that and try some things before we can be of much further help
Found the solution on how to add this based on your tutorial links, now that I see it looks pretty simple...but in case someone get stuck on a similar problem.
I have achieved this with following 3 steps:
1: First adding unique ID to every button based on the product page, in file that is generating every product page:
id="atc_single_product-{{ product.id }}"
2: For generating option in Customize Panel, added following inside Config file "settings_schema.json":
{
"type": "color",
"id": "atc_single_product-7214350529",
"label": "Montreal #9",
"default": "#333333"
},
Added some basic HTML for hover effect that will call to action and combine both step 1 and 2 and once hovered :
#atc_single_product-7214350529:hover, input#atc_single_product-7214350529[type="submit"]:hover, input#atc_single_product-7214350529[type="button"]:hover
{
background: {{ settings.atc_single_product-7214350529 }};
border-color: {{ settings.atc_single_product-7214350529 }};
outline: none;
}
End Result: http://i.stack.imgur.com/M2RiG.png
Maybe it doesn't look pretty, but it hey it works. Thanks!

Accordion with different form panels in SenchaTouch

I have started to build an app in SenchaTouch 2.3. I need to implement a large form an my question is: Can I build an accordion to "group" the form in different parts? This could be the expanded panels:
> Personal Data
Salutation: Select or Radio
Firstname: Textfield
Lastname: Textfield
> Address
Street: Textfield
Zip: Textfield
Country: Select
...
> Other Data
...
Perhaps someone can provide a little example. Thank you very much!
For the accordion part, your best bet may be to use a library and wrap the collapsible component in a formpanel, grouped using fieldsets. This code may be helpful too. http://kubahulewicz.net/2012/07/18/sencha-touch-2-searchable-grouped-list-with-expandcollapse-functionality/
I finally found a sweet solution: https://github.com/mitchellsimoens/Ux.layout.Accordion
It works like expected and can be modified for my needs.