[][src]Function ul_sys::ulViewSetCreateChildViewCallback

pub unsafe extern "C" fn ulViewSetCreateChildViewCallback(
    view: ULView,
    callback: ULCreateChildViewCallback,
    user_data: *mut c_void
)

Set callback for when the page wants to create a new View.

This is usually the result of a user clicking a link with target="_blank" or by JavaScript calling window.open(url).

To allow creation of these new Views, you should create a new View in this callback, resize it to your container, and return it. You are responsible for displaying the returned View.

You should return NULL if you want to block the action.