design-guide | IBM Watson 's Design Guide | Cloud Functions library
kandi X-RAY | design-guide Summary
kandi X-RAY | design-guide Summary
IBM Watson's Design Guide
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of design-guide
design-guide Key Features
design-guide Examples and Code Snippets
Community Discussions
Trending Discussions on design-guide
QUESTION
I read that carefully. And yes very helpful!
https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/names-of-namespaces
Assuming you have following products and namespaces
...ANSWER
Answered 2022-Mar-05 at 18:10If all the objects in those classes are similar then try this approach
QUESTION
I've come across a struct in legacy code that I feel should be redefined as a class. It doesn't fit the general guidelines for choosing between a class and a struct.
While I'm in here, I would like to better understand if a struct that contains methods with reference type parameters, such as an interface, are in any case possibly less efficient due to boxing and unboxing?
My understanding is that value types are boxed when cast to a reference type or to an interface they implement, and unboxed when cast back to a value type, but I am unclear about the implications of using reference types within methods of a struct.
Given a struct and a static class:
...ANSWER
Answered 2021-Jul-02 at 20:42Reference types can't be boxed, only value types may. I don't think the allocation of memory for local variables and parameters within a method has anything to do with whether the method is declared in a reference type or value type.
QUESTION
I created a Custom Action Ribbon button for sharepoint online and i want to run a javascript code when the button is clicked.
Sharepoint documentation even provides an example of it: https://docs.microsoft.com/en-us/sharepoint/dev/schema/commanduihandler-element?redirectedfrom=MSDN#example
but when i'm trying it always returns an error Custom action urls must start with "http:", "https:", "~appWebUrl" or "~remoteAppUrl".
Another part of the documentation says that it is not possible https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/sharepoint-add-ins-ux-design-guidelines?redirectedfrom=MSDN#figure-4-a-custom-action-in-the-contextual-menu
So how do i make it work? is not possible anymore and only can do redirections?
or it deppends of the location? i have it defined as so it is displayed in the command bar.
ANSWER
Answered 2021-Feb-17 at 18:33Unfortunately it is not possible to add a custom ribbon action with a javascript logic with a provider hosted add-in 🤔. I think the articles/links where you found it is possible refer to the Server ribbon xml custom action that could be modified using sandbox solutions (like the old school SharePoint days 😊), but now the sandbox is rather not supported in SP online.
For the Ribbon custom actions that are added with the add-in you should specify the direct link. This is already what needs to be specified when we add a Ribbon action in VS to the Add-in project (we should specify were we navigate to)
I also found this MSDN article (quite up to date - from 2020) where we may find:
CustomAction cannot contain JavaScript: Any UrlActions or CommandActions must be a URL to navigate to. (...)
So I am like 95% sure it should 😉 not be possible... but I leave the 5% as I am not like an SP PRO (I think it is hard to be one as it is like sooooo much to know 😋)
possible solution you might takeWhat you might do is to add the custom Ribbion xml using PowerShell and attach any javascript logic to it also using PowerShell 😋. The only drawback is that the javascript file needs to be also somehow added to the page (like it could be stored in the SiteAssets library).
So to do that we need to:
- create an xml file locally with our Ribbon command button like:
QUESTION
MS documentation: Use interfaces to group related operations
...ANSWER
Answered 2020-Dec-24 at 20:32I think just adding a space before the colon fixes it:
QUESTION
I have some elements within a section in a webpage. Here's my code. You just need to look at the section with id="recent-blog-article"
. I am including more code because it might help people understand. In the CSS, the relevant portion is below the /* Relevant Section */
comment.
ANSWER
Answered 2020-Oct-07 at 19:38On the image's CSS first try:
QUESTION
I am trying to put similar groups of elements in a grid:
...ANSWER
Answered 2020-Oct-07 at 16:52Since your content-*
elements are not direct children, they are not affected by the #grid
parent. You can make your #content
element a grid parent.
I changed the grid-template-areas
for your #grid
element and update the CSS to include styles for the #content
element (which you may need to update for your needs)
QUESTION
I am using a CSS grid. To get an idea of the layout, please look at the CSS:
...ANSWER
Answered 2020-Oct-06 at 18:15You have set the height to your headings section as 79px
. The content of your heading section exceeds this height and is overflowing into your grid gap. I'd suggest setting the height to auto
instead:
QUESTION
I am learning web designing by trying to clone a part of a website. Here is my html code:
...ANSWER
Answered 2020-Oct-05 at 15:41Add position: absolute;
to the #search-bar
selector
More information on the position property: https://developer.mozilla.org/en-US/docs/Web/CSS/position
QUESTION
There are many other questions here which target the same problem many-to-many relationship url design for restful apis
. I have somewhat the same, but it differs from other.
I couldn't find any better approach.
I have locations
resource, and services
resource`
ANSWER
Answered 2020-Feb-14 at 12:47You can use any spelling you want. You should choose a spelling that is consistent with the spellings you use for other identifiers, for the same reason that we choose spellings of variable names that are consistent with other local variable names.
But
QUESTION
What is a good tactic for querying Cosmos DB (Table Storage API) to get the "next" item in Storage? "Next" is defined as the top 1 item that was not returned by the last call. The item that was returned by the last call is being held in memory. Using .NET Framework, C#. Table is expected to hold around 2 million entries, so table scans are not preferred. :)
Table Storage looks like this: Partition Key (composite of multiple values): "0000/00/01/2020-01-11". Row key single int value 1 for example. Row contains other string data.
So Key-Value pairs (Partition Key and Row Key) look like the below. The application is read-heavy, but not necessarily using the Log Tail Pattern (https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-design-guide#log-tail-pattern).
...ANSWER
Answered 2020-Jan-21 at 12:08Two possible ideas depending on your other requirements:
- Manually iterate through the rows by keeping track of your last rowkey
- Define a query to get all rows that match your criteria, and leverage the
TableContinuationToken
You might need to adapt the filters in my examples to your exact requirements, but the idea should fit either way.
Manually iterate through the rows by keeping track of your last rowkeyCommunity Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install design-guide
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page