Delegates in slate

For things such as TextBoxes, for the .Text parameter you can also pass in a delegate to always have the textbox updated. Could anyone post an example on how I could do this to allow my custom widget to take a delegate?

The easiest way to achieve this use _Raw when binding.This is easiest becuase this does not require a shared ptr. For example:

[ SNew(SEditableTextBox)

.OnTextChanged_Raw(this, &YourModule::YourFunction)

];

void YourModule::YourFunction(const FText& text)

{

//something

}