Questions tagged [clay]

Clay is a C# library that implements a dynamic typing system similar to JavaScript using C# `dynamic` types.

Clay is an open source C# library that provides extensive dynamic type system support, far beyond what is possible using the built-in ExpandoObject. The library provides a dynamic type factory class that can be used to create new dynamic types, which can then be extended in a manner similar to other dynamic languages such as JavaScript.

Clay-generated dynamic objects can have new properties defined for them dynamically, much like the ExpandoObject type. In addition, Clay dynamic objects can:

  • Add new properties using indexer syntax, allowing property names to be determined at run-time.
  • Create dynamic arrays which are themselves extensible Clay objects
  • Set properties using chained setters, in the style of jQuery, named arguments, or anonymous types
  • Be treated as interface implementations if they have the correct set of properties.

Homepage: http://clay.codeplex.com/

Nu-Get : Install-Package Clay

14 questions
2
votes
1 answer

Liferay 7 Clay Management Toolbar

How add advance search in Clay management toolbar ?
2
votes
1 answer

Dump objects build with Clay in C#

Is any way to dump objects to console / logfile build with ClaySharp in C#? Clay is a dynamic C# type that will enable you to sculpt objects of any shape just as easily as in JavaScript or other dynamic languages. Project Link Ex object build with…
bmustata
  • 597
  • 9
  • 19
2
votes
3 answers

How do we check whether a dynamic clay object has a property?

I have a dynamic object, that I think is implemented with Clay. It has one of two possible property names. I want to use which ever property name is available. The following doesn't work: dynamic workItemPart = item.WorkItem; // is an…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
1
vote
1 answer

How to integrate bootstrap css and js with my liferay 7.2 theme?

I created a liferay 7.2 theme based on gradle with liferay developer Studio ( new Module project) , For now,I added some navigation menus and footer and contents , it looks not responsive anymore that's why I ask how to integrate bootstrap within my…
1
vote
1 answer

Console output in clay programming language

I want to play around with clay a little but I did not figure out how to get the output to display on the console. Is there any library function I could use? And related to this question: where can i find some documentation?
Byakkun
  • 97
  • 10
1
vote
0 answers

Instantiating and binding Dynamic Proxy Binding from a complex data source with Automapper, Linfu, Clay or ImpromptuInterface

I need to construct an Immutable Complex Dynamic Proxy class from an anonymous type, json or Dictionary Given I have a public interface ICommand { Guid AggregateId { get; } } public interface IChangeDetails : ICommand { Name Name { get;…
1
vote
1 answer

Is Orchard.ContentManagement.ContentPart implemented with Clay?

I previously asked How do we check whether a dynamic clay object has a property? My question assumed that an Orchard.ContentManagement.ContentPart was a dynamic Clay object. Is it a dynamic Clay object?
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
0
votes
1 answer

POV-Ray clay texture

Does anyone know how to simulate a clay texture in POV-Ray? Would also love something that could create an object that has the roughness of clay. Is there some sort of mathematical function that can produce a clay smooth random bump?
Superdooperhero
  • 7,584
  • 19
  • 83
  • 138
0
votes
0 answers

Disable future dates in ClayUI 'Date Picker'

I am using Clay ui's date picker as a birth date input component. Requirement says need to disable future dates. But in the documentation there is no any way to disable the future dates as it goes up to whole year. years={{ end:…
Sajith Wijerathne
  • 119
  • 1
  • 3
  • 10
0
votes
1 answer

How to add custom icon in liferay clay?

I want to add WhatsApp icon in Liferay and use clay ui then how to add whatsapp icon in clay with liferay.
Hardik Jogani
  • 28
  • 1
  • 8
0
votes
1 answer

How to implement Clay in Liferay 7.2

As much as i try to find an explicit manual over the Liferay 7.2 documentation im not able to get a concrete and "non cryptic" way of implement clay in Liferay 7.2. Just looking forward for some feedback about just how to implement Clay on a Liferay…
Lowtrux
  • 156
  • 2
  • 12
  • 41
0
votes
1 answer

How do I recieve values from Config page to my C Pebble code?

I have been following the Pebble Clay Config process but am stuck. I want to be able to chnage temp value from C to F, I have the code to do this but whenever I send the information from the clay config page back to pebble it does not seem to be…
Rueben
  • 135
  • 1
  • 15
0
votes
1 answer

Make new object with reflection?

I'm not sure if this is possible and after lengthy research I haven't found something conclusive. I am trying to dynamically create a new object (itself a new Type) from a dictionary. So say I have key and value that key and value will become a…
Jose Luis
  • 3,307
  • 3
  • 36
  • 53
0
votes
1 answer

lwjgl FPS spectator mode

I'm trying to write a program that uses lwjgl, and it involves flying around in first person, sort of like spectator mode in an FPS game - you fly in whatever direction you're looking. I know how to do an FPS camera walking on the ground, but this…
knarf2011
  • 53
  • 1
  • 7